Part Number Hot Search : 
LM2904 FPF12045 16200 25001 0102A C74LVX1 C74LVX1 79L05ACF
Product Description
Full Text Search
 

To Download ADE3800XT Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  april 2005 1/138 rev. 3.2 analog lcd display engine for xga and sxga resolutions with embedded lvds and rsds transmitters ade3800 feature overview programmable context sensitive? filtering high-quality up-scaling and down-scaling integrated 10-bit triple channel adc/pll iqsync? autosetup integrated programmable timing controller integrated lvds transmitters integrated pattern generator perfect picture? technology srgb 3d color warp high performance osd supporting 1- to 4-bpp, proportional fonts advanced emi reduction features serial i2c interface low power 0.15 m process technology low cost 100-pin lqfp and 128-pin lqfp packages lead-free versions available in 2005. general description ade3800 devices are a family of highly-integrated display engine ics, enabling the most advanced, flexible, and cost-effective system-on- chip solutions for analog- only input lcd display applications. the ade3800 covers the fu ll range of xga and sxga analog-only monitor applications using lvds or rsds interface. the ade3800 family is software compatible . lcd scaler product selector product package output format support resolution rsds/tcon lvds ade3800xl 100 lqfp up to xga 75 hz yes ADE3800XT 100 lqfp up to xga 75 hz yes ade3800sxl 100 lqfp up to sxga 75 hz yes ade3800sxt 128 lqfp up to sxga 75 hz yes line-lock pll fast and accurate phase position  level  clock srgb 3d color warp temporal & spatial dithering analog video 30-bit programmable gamma table lcd panel st7 flash microcontroller on-screen display engine pattern generator programmable timing controller (tcon) rsds emi reduction spread spectrum ade3800 i2c adjustments of: iq scaling ? rgb signals triple 10-bit adc to tft programmable output formatter engine with context sensitive ? filtering lvds i2c address = 0xa8
ade3800 2/138 context sensitive? scaler sharper text with edge enhancement programmable coefficients for unique customization from 5:1 upscale to 2:1 downscale independent x - y axis zoom and shrink analog rgb input 140 mhz 10-bit adc ultra low jitter digital line lock pll composite sync and sync on green built-in support iqsync? autosetup autosetup configures phase, clock, level, and position automatically detects activity on input compatible with all standard vesa and gtf modes perfect picture? technology video & picture highlight zone supports up to 4 different windows independent window controls for contrast, brightness and color perfect color? technology programmable 3d color warp digital brightness, contrast, hue, and saturation gamma controls simple white point control compatible with srgb standard true color dithering for 18 and 24-bit panels temporal and spatial dithering 30-bit programmable gamma table osd engine 12 kb ram based 12x18 characters 1, 2, 3, 4-bit per pixel color characters multiple windows bordering, shadowing, transparency, fade-in and fade-out effects supports font rotation up to full screen size, multiple windows 64-entry truecolor lut with alpha-blending programmable timing controller (tcon) highly programmable support for xga and sxga smart panels rsds split line support for sxga smart panels supports 18, 24, 36, and 48-bit rsds outputs advanced flicker detection and reduction 8 programmable timing signals for row/column control wide range of drivers & tcon compatibility integrated lvds transmitters dual 4 channel 6/8 bit lvds transmitters programmable channel swapping programmable channel polarity programmable group channel swapping for flexibility in board layout programmable output swing control advanced emi reduction features flexible data transition minimization, single and dual differential clock and signals spread spectrum - programmable digital fm modulation of the output clock with no external components output format supports resolutions up to sxga @ 75hz supports resolution above sxga (1280x1024) with convenient input and output pixel clocks supports 6 or 8-bit panels supports single or double pixel wide formats
3/138 ade3800 table of contents chapter 1 important information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .6 chapter 2 general description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7 chapter 3 pin descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 chapter 4 register description by block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .18 4.1 global control (glbl) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 4.2 frequency synthesizer (fsyn) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2.1 dotclock vs outclock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.3 analog-to-digital converter (adc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 4.3.1 216mhz frequency synthesizer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.3.2 sync-on-green (sog) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 4.4 analog dithering (adth) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 9 4.4.1 function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4.4.2 addressing technique . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4.4.3 output amplitude control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4.4.4 miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 4.5 line lock pll (llk) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 4.6 sync retiming (srt) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 4.6.1 coast signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 4.7 input sync measuremen t (smeas) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4.7.1 input sync - activity detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 4.7.2 input sync - measurement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.7.3 fast mute . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 4.8 sync multiplexer (smux) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 3 4.9 data measurement (dmeas) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 4.9.1 function summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 4.9.2 window control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 4.9.3 algorithm control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47 4.9.4 mode control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 4.9.5 edge intensity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 4.9.6 pixel sum . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 4.9.7 min / max . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48 4.9.8 pixel cumulative distribution (pcd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
ade3800 4/138 4.9.9 h position min / max . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49 4.9.10 v position min / max . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 4.9.11 de size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50 4.10 scale (scl) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53 4.10.1 frame synchronization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54 4.10.2 context description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57 4.10.3 scale kernel example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58 4.11 pattern generator (pgen) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 9 4.11.1 overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59 4.11.2 color mask sequencer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 4.11.3 8 x 8 grid layout with optional re sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 4.11.4 borders . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 4.11.5 tcon window control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64 4.12 srgb (srgb) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 4.12.1 parametric gamma, digital contrast / brightness on mu ltiple windows . . . . . . . . . . . . . . . . . . . . . 68 4.12.2 color space warp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68 4.13 gamma (gam) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 71 4.14 on-screen display (osd) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 2 4.14.1 implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76 4.14.2 color lut calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 4.14.3 alpha blending . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 4.14.4 ram memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81 4.15 flicker (flk) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 4.15.1 function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88 4.16 adaptive phase control (apc) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 4.16.1 function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 4.16.2 addressing technique . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 4.16.3 dither threshold control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 4.17 output mux (omux) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94 4.17.1 output data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98 4.17.2 output clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 4.17.3 clock sources and timing considerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101 4.18 timing controller (tcon) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2 4.19 lvds/rsds features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 3 4.19.1 output channels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114 4.20 pulse width modulation (pwm) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119 4.21 i2c block transfer (i2cbkt) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 4.21.1 transfer setup and start . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120
5/138 ade3800 4.21.2 transfer progress . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 4.21.3 concurrent i2c transfers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 120 4.22 i2c registers and ram addresses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 4.22.1 i2c transfer format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 4.22.2 dedicated ram areas per block . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 4.22.3 multi-byte registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122 chapter 5 electrical specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .124 5.1 absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 5.2 nominal operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124 5.3 preliminary thermal data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 5.4 preliminary dc specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 5.4.1 lvttl 5-volt tolerant inputs with hysteresis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 5.4.2 lvttl 3-volt tolerant inputs with hysteresis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 5.4.3 lvttl 5-volt tolerant i/o with hysteresis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126 5.4.4 lvttl 3-volt tolerant i/o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 5.4.5 lvttl 3-volt tolerant i/o . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 5.5 lvds outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 5.6 rsds outputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127 5.7 adc characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128 chapter 6 package mechanical data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .129 6.1 100 pin lqfp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129 6.2 128 pin lqfp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130 chapter 7 scaler equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .132 chapter 8 ade3800 vs ade3700 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .133 chapter 9 glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .136 chapter 10 revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .137
important information ade3800 6/138 1 important information xclk: crystal oscillator, usually 27 mhz. inclk: adc sampling clock frequency, depends on input video mode pixel rate. dotclk and outclk: related to panel output pixel rate. sclk: scale clock used for the line buffer ram and picture zooming. if some bit fields are missing, these bits are marked as "reserved": ? return 0 when read, but it is also the user's duty to mask them upon readout, to ensure compatibility with later device releases ? must be written to 0 when the whole register is written in all cases, the default reset value always prevails an asterisk denotes the default reset value for the corresponding bit(s). unless all addresses and registers values are in hexadecimal. ?not sticky? means dynamically updated (set or reset) by hardware, not a static bit. a ?sticky? bit, once set remains set until the user clears it. when a value is followed by ?typ? this means it is a typical value and pvt dependent. if a time or delay value does not have ?min/typ/max? information, it is proportional to the xclk frequency. any register names containing hw are shadow registers: they report which value is currently being used by the chip. when a register bit field list has one bold option, it is the only choice for normal mode of operation. tcon must always be programmed for any panel type. values spread out over several registers are organised as follows: 32-bit values 24-bit values 16-bit values _0 lsb _l or _0 lsb _l lsb _1 _m or _1 msb _u usb _2 _u or _2 usb _3 usb
7/138 ade3800 general description 2 general description the ade3800 family of devices is capable of implementing all of the advanced features of todays lcd monitor products. for maximum flexibility, an external microcontroller (mcu) is used for controlling the ade3800 and other monitor functions. the ade3800 architecture unburdens the mcu from all data-intensive pixel manipulations, providing an optimal blend of features and code customizing without incurring the cost of a 16-bit processor or memory. the key interactions between the monitor mcu and the ade3800 can be broken down into the features shown in ta b l e 1 . figure 1: ade3800 block diagram table 1: ade3800 features (sheet 1 of 2) feature description of ade3800 operation blocks used pages power-up / initialize when power is first applied, t he ade3800 is asynchronously reset from a pin. the mcu typically programs the ade3800 with a number of default values and sets up the ade3800 to identify activity on any of the input pins. all pre- configured values and rams, such as line-lock pll settings, osd characters, lcd timing values (output sequencer), scale kernels, gamma curves, srgb color warp, apc dithering, output pin configuration (omux) , etc. can be pre- loaded into the ade3800. the typical end state is that the ade3800 is initialized into a low power mode, ready to turn active once the power button is pressed. glbl smeas llk adc osd scaler gamma srgb tcon apc omux 18 36 30 21 72 53 71 68 102 92 94 activity detect when the monitor has been power ed on, the inputs can be monitored for active video sources. based on the activity m onitors, the mcu chooses an input or power down state. smeas 36 ade3800 sclk domain dclk domain inclk domain xclk domain mcu (scl, sda) analog h&v syncs analog r, g, b data tcon out data syncs, & clock i2c pwm pulse width modulation smeas sync measure srt sync retiming glbl global control llk line lock pll smux sync multiplexer dmeas data measure adc (digital) adc (analog) scl scaler tcon timing controller flk flicker detection pgen pattern generator srgb gam gamma osd on-screen display dclk pll, fm sclk pll apc omux output multiplexer lvds/rsds
general description ade3800 8/138 sync / timing measurement once an input source is selected, all available information on frequencies and line/pixel counts is measured for the se lected source and made available to the mcu. smeas 36 mode set once the mcu has determined the matching video mode or calculated a video mode using a gtf algorithm, the datapath is programmed to drive the flat panel. clock frequencies for the internal memory and datapath are also set at this time. glbl llk srt smux scaler 18 30 33 43 53 autotune when the mcu calls for an autotune , the mcu sets up an iterative loop to search for the best phase, gain, offset, etc. at each step of the loop, the mcu kicks off a test in which the ade3800 per forms extensive statistical analysis of the incoming data stream. the results of the analysis are made available to the mcu which is responsible fo r the optimization algorithm. dmeas llk adc smux srt 47 30 21 43 33 digital contrast / brightness in response to user osd control, the mcu can program single 8-bit registers that set brightness and contrast for each color channel independently. srgb 68 white point control in response to user osd cont rol, the mcu can program three 8-bit registers that set the white point for the output. srgb 68 gamma adjustment the mcu can program the gamma rams to implement 10-bit accurate color transformations to match the panel color characteristics. gamma 71 srgb control allows simple, intuitive color control for parametric gamma correction and 3d color cube warping. srgb 68 pattern generation for production testing, the ade3800 can be programmed by the mcu to output a wide set of test patterns. pgen 59 flicker reduction for smart panel applications, t he mcu can set up the flicker detection block to report any correlation with the polarit y inversion signal. the mcu can then change the polarity inversion to a non-correlating pattern to eliminate flicker. flicker tcon 88 102 backlight control the ade3800 provides two pw m outputs for direct control of the power components in a typical backlight. t he mcu sets up the registers and enables the function. pwm 119 low power state to enter a low power state, the mcu can gate off most of the clocks and put the analog blocks into a low power standby state. glbl 18 table 1: ade3800 features (sheet 2 of 2) feature description of ade3800 operation blocks used pages
9/138 ade3800 general description the following table gives a brief description of each block of the ade3800: table 2: ade3800 block descriptions block description global control (glbl) responsible for selecting clock sources, powe r control, i2c control and block by block synchronous reset generation frequency synthesizer (fsyn) generates the output clock (also known as the dot clock & dclk) and the scaler clock (sclk). frequency modulation, phase control, and pulse extension (duty cycle control) of the output clock are also provided. analog-to-digital converter (adc) has the following features: - supports input clocks up to 140mhz (sxga 75hz) - adjustable analog amplifier bandwidth - differential rgb input path for noise immunity - built-in sync-on-green support - individual rgb clock delay control - power down control - linear and independent gain/offset adjustment analog dithering (adth) generates a 3-bit dither pattern to tune the 10-bit resolution of the adc block. line lock pll (llk) generates the adc sample clock from an incoming hsync source. sync retiming (srt) retimes synchronization signals (e.g. hsync and vsy nc) into either the xclk or in-clock domains. input sync meas urement (smeas) monitors input port activity and measures input sync signals from all sources. sync multiplexer (smux) synthesizes clamp and horizontal and vertical enable signals from input sync signals. selects which signals continue to the scaler block data measurement (dmeas) measures several characteristic s of the pixel data and sync signals. scale (scl) resizes images from one resolution to another. pattern generator (pgen) provides the ability of displaying a set of useful graphic patterns to help debugging and testing lcd panels. srgb (srgb) performs parametric gamma correction on multiple windows or full screen, used for video enhancement in a window and digital contrast/brightness control. allows 3d color cube warping rgb color space. gamma (gam) implements three independent 256 point gamma curv es for each of r, g, and b channels. on-screen display (osd) has the following features: - one ram block 4096x24 is used for the full operation of the osd. - the characters can be displayed anywhere on the screen. - horizontal/vertical start location for each row in the osd. - global alpha blending for all the characters displayed as well as alpha blending per color with 16 levels. - horizontal/vertical flip based per character. - 1bpp/2bpp/3bpp/4bpp characters supported. - rotation supported by means of having a 18x 12 pixel character or 12x18 pixel character. - color lut of 64 colors (24bit rgb true color) flicker (flk) computes a nonlinear correlation of lcd pol arity inversion patterns and the lcd output data stream and provides the correlation re sults as scores to the microcontroller. adaptive phase control (apc) generates a 2-bit dither pattern for an 8-bit panel or a 4-bit dither pattern for a 6-bit panel to visually improve the amplitude resolu tion of the 10-bit rgb output signal.
general description ade3800 10/138 output mux (omux) an extension of the ade3700 output mux block. the major changes are: - lvds controls - rsds split line buffer timing controller (tcon) provides timing for smart panel applications and other applications that are sensitive to output synchronization timing. the timing unit is based on horizontal and vertical counters, which are locked with the output video stream. lvds/rsds features has the following features: - power down - output swing and common mode programmable - individual channel programmable delay - programmable lvds clock output polarity pulse width modulation (pwm) generates two signals that can be used to c ontrol backlight inverter switching power components directly. it is derived from xc lk and can be powered up independently of the dotclk and inclk domains. i2c block transfer (i2cbkt) allows the internal i 2 c parallel bus to be driven by an xclk state machine to perform rapid block transfers between internal addresses. i2c registers and ram addresses memory mapping of all ram and register locations accessible by i2c. table 2: ade3800 block descriptions block description
11/138 ade3800 pin descriptions 3 pin descriptions figure 2: lqfp100 pinout diagram pllvdd18 sgnd ovdd18 dvdd18 dvdd18 dgnd dgnd rsds7- rsds7+ rsds5- rsds5+ ovdd18 vrh vrl rsds3- rsds3+ dvdd18 dvdd18 dgnd dgnd dvdd33 xclk tst_scan resetn2 pllvdd18 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 dvdd18 dvdd18 dgnd dgnd epgnd dvdd18 dvdd18 dvdd18 dgnd dgnd tcon7 tcon6 tcon5 tcon4 tcon3 tcon2 tcon1 tcon0 dvdd33 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 scl/csync dgnd sda resetn pgnd pvdd18 ovdd18 100 out0- out0+ out1- out1+ out2- out2+ outclk0- outclk0+ out3- out3+ ovdd18 vrh vrl out4- out4+ 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 out5- out5+ out6- out6+ outclk1- outclk1+ out7- out7+ ovdd18 sda2 26 scl2/ext_sog/csync xclk_en vsync hsync avdd agnd inb+ inb- avdd avdd agnd ing+ ing- 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 avdd agnd agnd inr+ inr- avdd xgnd xtal_out xtal_in xvdd18 pgnd 100-pin lqfp
pin descriptions ade3800 12/138 figure 3: lqfp128 pinout diagram table 3: analog input signals (sheet 1 of 2) lqfp100 lqfp128 name input/ output description 43 53 inr+ i positive adc red channel input 44 54 inr- i negative adc red channel input pllvdd18 sgnd ovdd18 dvdd18 dvdd18 dgnd dgnd rsds7- rsds7+ rsds6- rsds6+ rsds5- rsds5+ rsds4- rsds4+ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 ovdd18 vrh vrl rsds3- rsds3+ rsds2- rsds2+ rsds1- rsds1+ rsds0- rsds0+ dvdd18 dvdd18 dgnd dgnd dvdd33 xclk tst_scan resetn2 sda2 scl2/ext_sog/csync xclk_en vsync rsds15+ 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 rsds15- rsds14+ rsds14- rsds13+ rsds13- dvdd18 dgnd dgnd rsds12+ rsds12- ovdd18 vrh vrl rsds11+ rsds11- rsds10+ rsds10- rsds9+ rsds9- rsds8+ rsds8- dvdd18 dvdd18 dgnd tcon7 tcon6 tcon5 tcon4 tcon3 tcon2 tcon1 tcon0 dvdd33 scl/csync dgnd sda resetn hsync 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 epgnd avdd agnd inb+ inb- avdd avdd agnd ing+ ing- avdd agnd agnd inr+ inr- avdd epgnd epgnd xgnd xtal_out xtal_in xvdd18 pgnd pvdd18 pgnd pllvdd18 128 127 126 125 124 123 122 121 120 119 118 117 116 115 114 113 112 111 110 109 108 107 106 105 104 103 ovdd18 out0- out0+ out1- out1+ out2- out2+ outclk0- outclk0+ out3- out3+ ovdd18 vrl vrh out4- out4+ out5- out5+ out6- out6+ outclk1- outclk1+ out7- out7+ ovdd18 128-pin lqfp
13/138 ade3800 pin descriptions 38 48 ing+ i positive adc green channel input 39 49 ing- i negative adc green channel input 33 43 inb+ i positive adc blue channel input 34 44 inb- i negative adc blue channel input 29 38 vsync i vertical sync input signal 30 39 hsync i horizontal sync or composite sync input signal table 4: output signals and tcon signals (sheet 1 of 2) lqfp100 lqfp128 name input/ output description 25 rsds0- o rsds channel 0 data - 26 rsds0+ o rsds channel 0 data + 23 rsds1- o rsds channel 1 data - 24 rsds1+ o rsds channel 1 data + 21 rsds2- o rsds channel 2 data - 22 rsds2+ o rsds channel 2 data + 16 19 rsds3- o rsds channel 3 data - 17 20 rsds3+ o rsds channel 3 data + 14 rsds4- o rsds channel 4 data - 15 rsds4+ o rsds channel 4 data + 11 12 rsds5- o rsds channel 5 data - 12 13 rsds5+ o rsds channel 5 data + 10 rsds6- o rsds channel 6 data - 11 rsds6+ o rsds channel 6 data + 9 8 rsds7- o rsds channel 7 data - 10 9 rsds7+ o rsds channel 7 data + 81 rsds8- o rsds channel 8 data - 82 rsds8+ o rsds channel 8 data + 83 rsds9- o rsds channel 9 data - 84 rsds9+ o rsds channel 9 data + 85 rsds10- o rsds channel 10 data - 86 rsds10+ o rsds channel 10 data + 87 rsds11- o rsds channel 11 data - 88 rsds11+ o rsds channel 11 data + 92 rsds12- o rsds front side clk- 93 rsds12+ o rsds front side clk+ 97 rsds13- o rsds channel 13 data- 98 rsds13+ o rsds channel 13 data+ table 3: analog input signals (sheet 2 of 2) lqfp100 lqfp128 name input/ output description
pin descriptions ade3800 14/138 99 rsds14- o rsds channel 14 data- 100 rsds14+ o rsds channel 14 data+ 101 rsds15- o rsds channel 15 data- 102 rsds15+ o rsds channel 15 data+ 98 125 out0+ o +lvds channel 0 differential da ta output or rsds channel 16 data + 99 126 out0- o -lvds channel 0 differential data output or rsds channel 16 data - 96 123 out1+ o +lvds channel 1 differential data output or rsds channel 17 data + 97 124 out1- o -lvds channel 1 differential data output or rsds channel 17 data - 94 121 out2+ o +lvds channel 2 differential da ta output or rsds channel 18 data + 95 122 out2- o -lvds channel 2 differential data output or rsds channel 18 data - 90 117 out3+ o +lvds channel 3 differential da ta output or rsds channel 19 data + 91 118 out3- o -lvds channel 3 differential data output or rsds channel 19 data - 85 112 out4+ o +lvds channel 4 differential data output or rsds back side clk- 86 113 out4- o -lvds channel 4 differential data output or rsds back side clk+ 83 110 out5+ o +lvds channel 5 differential da ta output or rsds channel 22 data + 84 111 out5- o -lvds channel 5 differential data output or rsds channel 22 data - 81 108 out6+ o +lvds channel 6 differential da ta output or rsds channel 23 data + 82 109 out6- o -lvds channel 6 differential data output or rsds channel 23 data - 77 104 out7+ o +lvds channel 7 differential da ta output or rsds channel 24 data + 78 105 out7- o -lvds channel 7 differential data output or rsds channel 24 data - 92 119 outclk0+ o +lvds channel a differential clock output or rsds channel 20 data + 93 120 outclk0- o -lvds channel a differential clock output or rsds channel 20 data - 79 106 outclk1+ o +lvds channel b differential clock output or rsds channel 25 data + 80 107 outclk1- o -lvds channel b differential clock output or rsds channel 25 data - 58 70 tcon0 o tcon output 0 or pwm b output 59 71 tcon1 o tcon output 1 or pwm a output 60 72 tcon2 o tcon output 2 61 73 tcon3 o tcon output 3 62 74 tcon4 o tcon output 4 63 75 tcon5 o tcon output 5 64 76 tcon6 o tcon output 6 65 77 tcon7 o tcon output 7 table 5: system controls (sheet 1 of 2) lqfp100 lqfp128 name input/ output description 47 59 xtal_out o crystal oscillator output 48 60 xtal_in i crystal oscillator input table 4: output signals and tcon signals (sheet 2 of 2) lqfp100 lqfp128 name input/ output description
15/138 ade3800 pin descriptions 23 32 xclk i/o crystal clock buffered output. controlled by xclk_en pin 28 37 xclk_en i crystal clock output enable. when connected to 3.3 v, t he xclk output is active when connected to ground, the xclk output is disabled 25 34 resetn2 i reset 2 input a . active low 53 65 resetn i reset input 1 . active low 54 66 sda i/o i2c data b . open drain 56 68 scl/csync i i2c clock c or composite sync input signal 26 35 sda2 i/o i2c 2 data 2 . open drain 27 36 scl2/ext_sog/ csync i i2c 2 clock 3 or composite sync input signal 24 33 tst_scan i reserved for test. should be connected to digital ground a. resetn and resetn2 pins are ored together internally. the pin whic h is not used must be connected to ground. b. the sda and sda2 pins share the same internal bi-directional control. the pin that is not used reverts as output and must be left floating or connected to a pull-up resistor. c. this device has two reset/i2c ports (resetn/scl/sda or resetn2/ ext_sog/sda2) to facilita te pcb layout. the state of the tw o reset pins determines which reset/i2c port is active. th e reset pin that is held in the low stat e disables that reset/i2c po rt for normal reset/i2c operati ons. however, the disabled ports scl input (either scl or ext_sog) can be used as a csync input from an external csync extractor. if this csync input is not required, then the unused scl pin should be connected to ground table 6: digital section power supply pins (sheet 1 of 2) lqfp100 lqfp128 name description 5 4 dvdd18 digital 1.8v supply 6 5 dvdd18 digital 1.8v supply 7 6 dgnd digital ground 8 7 dgnd digital ground 18 27 dvdd18 digital 1.8v supply 19 28 dvdd18 digital 1.8v supply 20 29 dgnd digital ground 21 30 dgnd digital ground 22 31 dvdd33 digital 3.3v supply 55 67 dgnd digital ground 57 69 dvdd33 digital 3.3v supply 66 78 dgnd digital ground 67 dgnd digital ground 68 79 dvdd18 digital 1.8v supply 69 80 dvdd18 digital 1.8v supply table 5: system controls (sheet 2 of 2) lqfp100 lqfp128 name input/ output description
pin descriptions ade3800 16/138 70 dvdd18 digital 1.8v supply 72 94 dgnd digital ground 73 95 dgnd digital ground 74 96 dvdd18 digital 1.8v supply 75 dvdd18 digital 1.8v supply table 7: analog section power supply pins lqfp100 lqfp128 name description 31 41 avdd analog 1.8v supply 35 45 avdd analog 1.8v supply 36 46 avdd analog 1.8v supply 40 50 avdd analog 1.8v supply 32 42 agnd analog ground 37 47 agnd analog ground 41 51 agnd analog ground 42 52 agnd analog ground 45 55 avdd analog 1.8v supply 46 58 xgnd crystal oscillator ground 49 61 xvdd18 crystal oscillator 1.8v supply 50 62 pgnd pll ground 51 63 pvdd18 pll 1.8v supply 52 64 pgnd pll ground table 8: output section power supply pins (sheet 1 of 2) lqfp100 lqfp128 name description 2 1 pllvdd18 output pll 1.8v supply 3 2 sgnd output pll ground. should be connected to output ground 4 3 ovdd18 output multiplexer 1.8v supply 13 16 ovdd18 output multiplexer 1.8v supply 14 17 vrh lvds/rsds reference voltage. connect to external capacitor to ground 15 18 vrl lvds/rsds reference voltage. connect to external capacitor to ground 40 epgnd exposed pad ground. connect to output ground 56 epgnd exposed pad ground. connect to output ground 57 epgnd exposed pad ground. connect to output ground 71 epgnd exposed pad ground. connect to output ground 76 103 ovdd18 output multiplexer 1.8v supply 87 115 vrl lvds/rsds reference voltage. connect to external capacitor to ground 88 114 vrh lvds/rsds reference voltage. connect to external capacitor to ground table 6: digital section power supply pins (sheet 2 of 2) lqfp100 lqfp128 name description
17/138 ade3800 pin descriptions 89 116 ovdd18 output multiplexer 1.8v supply 91 ovdd18 output multiplexer 1.8v supply 89 vrl lvds/rsds reference voltage. connect to external capacitor to ground 90 vrh lvds/rsds reference voltage. connect to external capacitor to ground 100 127 ovdd18 output multiplexer 1.8v supply 1 128 pllvdd18 output pll 1.8v supply table 8: output section power supply pins (sheet 2 of 2) lqfp100 lqfp128 name description
register description by block ade3800 18/138 4 register description by block 4.1 global control (glbl) the global control block is responsible for: selecting clock sources power control i2c control block by block synchronous reset generation. the global control block runs in the crystal clock (xclk) domain, which is required to be active for programming. in general for all ade3800 blocks, i2c register access operates in the xclk domain; exceptions are the internal rams which require the appropriate clock domain to be active (e.g. dotclk for osd rams), refer to ta bl e 4 4 . table 9: global control registers (sheet 1 of 3) register name addr mode bits rst description glbl_rev_id 0000 r [7:0] 0x83 rev_id: chip revision id glbl_clk_src_sel_0 0001 r/w [6:4] 00 dotclk_src_sel: dotclk source select 0: crystal clock 1: xclk pin (test only) 2: fm freq synth half speed (1 ppc) a 3: fm freq synth full speed (2 ppc) 1 4: sclk frequency synthesizer 5-7: reserved [2:0] inclk_src_sel: input clock source select 0: crystal clock 1: xclk pin (test only) 2: llpll phase controlled src (normal) 3: llpll fixed phase clock (test only) 4: llpll control clock (test only) 5-7: reserved glbl_clk_src_sel_1 0002 r/w [6:4] 00 outclk_src _sel: panel output clock source select 0: crystal clock 1: xclk pin (test only) 2: fm freq synth half speed (1 ppc) b 3: fm freq synth full speed (2 ppc) 1 4: sclk frequency synthesizer 5-7: reserved [2:0] sclk_src_sel: scaler clock source select 0: crystal clock 1: xclk pin (test only) 2: fm freq synth half speed 3: fm freq synth full speed 4: fixed freq synth (normal) 5: lvds pll output (test only) 6: lvds pll input (test only) 7: reserved
19/138 ade3800 register description by block glbl_clk_inv 0003 r/w [4] 00 afe_clk_inv: invert adc sample clock [3] outclk_inv: invert output clock [2] sclk_inv: invert sclk [1] dotclk_inv: invert dotclk [0] inclk_inv: invert inclk glbl_clk_enab_0 0004 r/w [7] ff dotclk_flk_en: enable dotclk to the flk block [6] dotclk_osd_en: enable dotclk to the osd block [5] dotclk_pgen_en: enable dotclk to the pgen block [4] dotclk_en: enable dotclk upstream of flk, osd, and pgen enable [3] inclk_dft_en: enable incl k to dft test circuits [2] inclk_dmeas_en: enable inclk to dmeas block [1] inclk_en: enable inclk upstream of dmeas and dft enable [0] all_video_clk_en: override block enable (flk, osd, pgen, dft, dmeas) for test glbl_clk_enab_1 0005 r/w [1] 03 outclk_en: enable output clock [0] sclk_en: enable scaler clock glbl_srst_0 0006 r/w [7] 00 tcon_s rst: reset the tcon block [6] scl_srst: reset the scaler block [5] smux_srst: reset the smux block [4] dmeas_srst: reset the dmeas block [3] smeas_srst: reset the smeas block [2] srt_srst: reset the srt block [1] adth_srst: reset the adth block [0] adc_srst: reset the digital logic in the adc block glbl_srst_1 0007 r/w [7] 00 dft_srst: reset dft (test) circuits [6] omux_srst: reset the omux block [5] apc_srst: reset the apc block [3] osd_srst: reset the osd block [1] pgen_srst: reset the pgen block [0] osq_srst: reset the osq portion of the scaler block glbl_i2c_ctrl 0008 r/w [2] 00 i2c_auto_i nc_off: disable i2c autoincrement [1] i2c_sda_pmos_on: sda pmos enable c [0] bypass_i2c_filter: bypass antiglitch filter glbl_bpad_en 0009 r/w [7:0] 03 reserved glbl_comp_ctrl 000a r/w [0] 01 compen_e n: enable slew-rate compensation glbl_xtal_ctrl 000b r/w [0] 01 i2c_muxa_xtal_en: enable the crystal oscillator d glbl_tst_ctrl 000c r/w [7:0] 00 reserved table 9: global control registers (sheet 2 of 3) register name addr mode bits rst description
register description by block ade3800 20/138 4.2 frequency synthesizer (fsyn) the frequency synthesizer block generates the output clock, the dot clock and the scaler clock (sclk). frequency modulation, phase control, and pulse extension (duty cycle control) of the output clock are also provided. for consistency and ease of use, both clocks are programmed by means of a single-parameter ? the phase rate value derived from the desired frequency. 4.2.1 dotclock vs outclock dot clock (also known as dotclk or dclk) is an internal clock; there are no associated i2c registers. out clock is the pixel clock that drives the lcd panel: when driving 2 pixels per clock, out clock and dot clock are identical when driving 1 pixel per clock the out clock freq uency is half the dot clock frequency (phase rate is proportional to clock period which is the inverse of frequency). refer to table 12: clock relationship . glbl_azwc_ctrl 000f r/w [7:2] 0 reserved [1] 0 auto zero window control and clamp synchronization 0: synchronization on inclk 1: synchronization on dotclk [0] 0 reserved dft_del_ref 0f0b r [7:0] returns chip s peed and gate propagation delay (number of gates propagation per xclk period) a. refer to omux_ctrl0[0] and also to table 12 . b. refer to omux_ctrl0[0] and also to table 12 . c. if set, this bit puts the sda output in push-pull mode (instead of open drain) to achieve higher i2c speed. d. if reset, the device is put in shutdown mode (lowest possible power consumption) but can only exit from that mode with an external reset or a power on/off. table 10: fsyn frequency synthe sizer registers (sheet 1 of 2) register name addr mo de bits rst description fsyn_ctrl 0850 r/w [0] 00 frequency modulation 0*: off 1: on fsyn_pr_otclk_0 fsyn_pr_otclk_1 fsyn_pr_otclk_2 0851 0852 0853 r/w r/w r/w [7:0] [7:0] [5:0] 00 00 00 output clock phase rate = 2^21 * xclk_freq / out_clk_freq fsyn_offset 0854 r/w [7:0] 00 rsds clock-data skewcontrol (no meaning in lvds) lsb = 289ps table 9: global control registers (sheet 3 of 3) register name addr mode bits rst description
21/138 ade3800 register description by block 4.3 analog-to-digital converter (adc) the analog-to-digital block has the following features: supports input clocks up to 140mhz (sxga 75hz) adjustable analog amplifier bandwidth differential rgb input path for noise immunity built-in sync-on-green support individual rgb clock delay control power down control linear and independent gain/offset adjustment. gain control red, green, and blue channels have independent control registers: ana_adc_red_0, ana_adc_grn_0, and ana_a dc_blu_0, respectively. fsyn_fm_amplitude 0855 r/w [7:0] 00 frequency modulation amplitude lsb = 4.5ps fsyn_fm_periodx64 0856 r/w [7:0] 80 frequency modulation period lsb = 1.184us fsyn_pulse_high_ext 0857 r/w [7] 00 enable pulse extend 0*: disabled 1: enabled r/w [2:0] pulse extend value lsb = 0.3ns (typ) table 11: fsyn_pr_sk registers register name addr mo de bits rst description fsyn_pr_sk_0 fsyn_pr_sk_1 0860 0861 r/w r/w [7:0] [7:0] 00 00 sclk phase rate = 2^15 * xclk_freq / sclk_freq set sclk = 140mhz i.e. fsyn_pr_sk_1/0 = 18afh @ xclk = 27mhz table 12: clock relationship 1 ppc 2 ppc fsyn_outclk_freq 2x dotclk_freq dotclk_freq dotclk source sel fsyn_outclk_div2 (half speed) fsyn_outclk (full speed) glbl_clk_src_sel_0[6:4] 2 3 glbl_clk_src_sel_1[6:4] 3 3 fsyn_pr_otclk 2^21 * xclk_freq / 2x dotclk_freq 2^21 * xclk_freq / dotclk_freq table 10: fsyn frequency synthe sizer registers (sheet 2 of 2) register name addr mo de bits rst description
register description by block ade3800 22/138 8-bit control covers amplitudes from 0.35v (00) to 1.05v (ff) in steps of 2.74mv. offset control red, green, and blue channels have independent control registers: ana_adc_red_1, ana_adc_grn_1, and ana_a dc_blu_1, respectively. 6-bit control covers a range of 92.8mv in steps of 2.9mv. 4.3.1 216mhz frequency synthesizer the fs216 (controlled by the ana_fs216_ctrl register) is the system pll that drives the sclk and dclk frequency synthesizers (refer to section 4.2: frequency synthesizer (fsyn) ) and the llk, by generating two different reference clock frequencies, 216=27x8 mhz (fsyn) and 54=27x2 mhz (llk), based on xclk. for normal operation with a 27 mhz crystal, this register should be programmed to 0a. the control register also allows for different crystal frequencies, power down, and optional use of an external pll. 4.3.2 sync-on-green (sog) it is necessary to tune the analog sog circuit in order to secure a valid hsync that can be used by the line lock pll; the llk may then be programmed to generate an in-clock. the adc clamp relies on in-clock and may only be enabled once th is step is complete. clamp pulse is used to set the adc black level reference voltage. in normal operation, the sog signal is clamped by the adc clamp, and this clamp is not available during the initial tuning. for the initial tuning phase, instead of the adc clamp, the sog clamp (pull down current) is used to clamp the input sog signal. once the tuning has been accomplished, and there is a valid reference hsync and in-clock, the sog clamp may be disabled and the adc clamp may be enabled. there are therefore 2 states of sync-on-green operation: the initial state, which employs the sog clamp, and the normal (or locked) state, which employs the adc clamp. 4.3.2.1 initial sog clamp state at power up, set: ana_adc_sog_1[0] = 0 (power down bit; apply power to sog), ana_adc_sog_1[3] = 1 (enable sog clamp pull down current), ana_adc_grn_2[1] = 1 (adc clamp off; must be the same as ana_adc_sog_1[3]), and adjust ana_adc_sog_0[4:0] & ana_adc_sog_1[7:4] until one of the three comparators detects a sog signal. select a sog signal to be the reference hsync to which the line lock pll will lock. the normal value of the pull down current is 1.1ua and can be adjusted with ana_adc_sog_1[2:1]. either ana_adc_sog_1[0] = 1 or ana_adc_sog_1[3] = 0 will turn off the pull down current.
23/138 ade3800 register description by block the adc clamp signal is generated in digital circuitry. 4.3.2.2 sog lock state set: ana_adc_sog_1[0] remains 0, ana_adc_grn_2[1] = 0 (adc clamp on; must be the same as ana_adc_sog_1[3]). ana_adc_sog_1[3] = 0 (disable sog clamp pull down current), this enables the adc clamp circuit and disables the sog clamp (this is the recommended order ? it is better to have overlap than no clamp at all). the comparators will continue to compare the input signal with the reference voltages and provide a correct sog signal. comparator threshold voltages can be adjusted to optimize noise immunity if necessary. figure 4: initial sog clamp phase adcsog1[0] = 0 (pwdnsog) adcsog1[3] (ensog) = adcgrn2[1] = 1
register description by block ade3800 24/138 the ideal adc clamp signal would be greater than 1us wide and placed precisely between the sog pulse and video data. any overlap or misalignment will alter the green offset level internally and comparators may lose track of sog signal. level adjustment all 3 comparator thresholds and clamp voltage are moved up or down together by changing registers. these cannot be individually adjusted. to shift up: ? set ana_adc_sog_1[7:4] = 0f ? adjust ana_adc_sog_0[4:0] to a higher value. (the default is 0, ~8.8mv per increment.) to shift down: ? set ana_adc_sog_0[4:0] = 0b00000 ? adjust ana_adc_sog_1[7:4] to a lower value. (the default is 0f, ~10mv per decrement; a value of 00 is invalid.) to power down sog, set ana_adc_sog_1[0] = 1. note: the smeas block can still detect sog activity while the a dc is powered down. there are three sog analog voltage comparators that generate the sog0, sog1, and sog2 digital signals. these signals are then sent to the llk, srt, smeas, and smux blocks. for sog support t he smeas block has: three 8-bit edge counters (used to detect activity) four 4-bit delay counters (used to tune the comparator reference voltages) figure 5: sog lock phase sog output waveform has the same polarity as input adcsog1[0] = 0 (pwdnsog) adcsog1[3] (ensog) = adcgrn2[1] = 0 clamp position
25/138 ade3800 register description by block the 4 delay counters measure the time (in xclks) between the leading and trail edges of the sog signals, as follows: d1: delay count from sog[2] falling edge to sog[1] falling edge d2: delay count from sog[1] falling edge to sog[0] falling edge d3: delay count from sog[0] rising edge to sog[1] rising edge d4: delay count from sog[1] rising edge to sog[2] rising edge if there is no leading edge for a particular delay counter, the result is 0. if both edges are within the same xclk period, the result is 1. when the counter reaches a value of 0f, it stops. the delay and activity registers are used together to tune the sog sampling level. the delay measurements are controlled by the activity detection control registers which may be used to select either: one-shot: one sync pulse measurement; when do ne, hold result until next measurement is started; or free-run: continuously measures, results are dynamically updated.
register description by block ade3800 26/138 there are 8 possible cases as listed in the figure below. the n is a whole number from 1 to e representing a stable delay. f/0 is a whole number between 0 and f representing a delay that varies in time (because green data is being measured). 1 in the activity column means stable activity is detected, 0 means permanent no activity, and x indicates video dependence.
27/138 ade3800 register description by block table 13: adc registers (sheet 1 of 2) register name addr mode bits rst description ana_fs216_ctrl a 0040 r/w [4:3] 01 xtal freq multiplier, ndiv 0: f xclk = 54 mhz b 1*: f xclk = 27 mhz (normal) 2 2: f xclk = 13.5 mhz 2 3: reserved [2] external pll 0*: internal 1: external [1] pll select 0*: disabled 1: enabled [0] disable fs216 analog vco 0*: enabled 1: disabled ana_adc_pwdn 0050 r/w [0] 01 afe power control 0: on 1*: off ana_adc_sog_0 0051 r/w [4:0] 00 sog level detection & clamp up when adcsog1[7:4]=1 0mv to +282mv, at ~8.8mv per step 00000*: 0mv 11111: +282mv ana_adc_sog_1 0052 r/w [7:4] 01 sog level detection & clamp down when ana_adc_sog_0[4:0]=0 0mv to -340mv, 10mv per step 0*: disabled 1: -340mv f: 0mv [3] enable sog clamp & pull down current 0*: off 1: on [2:1] sog pull down current adjust max/typ/min 00*: 1.4/1.1/0.8 ua 01: 0.7/0.5/0.4 ua 10: 5.3/4.1/3.1 ua 11: 2.7/2.1/1.6 ua [0] sog power control 0: on 1*: off
register description by block ade3800 28/138 ana_adc_bias 0053 r/w [5] 01 adc band gap power control 0*: on 1: off [4:3] iref adjustment for internal bias, when adcbias[2:1]=01 (or 11) 00*: 600ua 01: 750ua 10: 300ua 11: 450ua [2:1] must be set to 01 [0] adc power control 0: on 1*: off ana_adc_red_0 0054 r/w [7:0] 7f gain control 2.74mv/step 00: 0.35v ff: 1.05v ana_adc_red_1 0055 r/w [7] 0f vref 0*: internal 1: external [5:0] offset control: 2.9mv/step ana_adc_red_2 0056 r/w [6:4] 00 channel skew control lsb = 200ps(typ) [3:2] amp bandwidth adjust 00*: bw=250mhz (min) 01: bw=150mhz (min) 10: reserved 11: bw=40mhz (min) [1] clamp control 0*: enabled 1: disabled [0] adc dithering (adth block) 0*: disabled 1: enabled ana_adc_grn_0 0057 see ana_adc_red_0 . ana_adc_grn_1 0058 see ana_adc_red_1 . ana_adc_grn_2 0059 see ana_adc_red_2 . ana_adc_blu_0 005a see ana_adc_red_0 . ana_adc_blu_1 005b see ana_adc_red_1 . ana_adc_blu_2 005c see ana_adc_red_2 . a. normal value for ana_fs216_ctrl is 0ah. b. when xclk = 27mhz table 13: adc registers (sheet 2 of 2) register name addr mode bits rst description
29/138 ade3800 register description by block 4.4 analog dithering (adth) the adth block generates a 3-bit dither pattern adth_out[2:0] to tune the 10-bit resolution of the adc block. note: adth_out[2:0] is not a register but the generated 3-bit dither output of the adth block. 4.4.1 function the adth block consists of a 32x 32x3 bit look up table (lut). it represents one dither matrix, which can be read using a programmable addressing tec hnique as well as a programmable output amplitude control. when adth_mat_ctrl[0] is ze ro or during the clamp pulse adth_out[2:0] = 3. during vertical blanking adth_out[2:0] is set to adth_test_dither[2:0] to provide a feedback mechanism for calibration. 4.4.2 addressing technique the adth block offers a programmable addressing technique to generate various temporal dither patterns. adth_frame_ctrl [7:4] is a 4-bit increment value, which defines the horizontal/vertical displacement of the dither matrix from frame to frame (precisely at rising edge of clamp_in and at falling edge of venab). after ( adth_frame_ctrl [3:0] + 1) number of frames the horizontal/vertical displacement position will be reset to zero/zero, only when adth_frame_ctrl [3:0] > 0. note: to set the frame accumulator to zero, program adth_frame_ctrl [7:4] to zero and program adth_frame_ctrl [3:0] to 1. adth_frame_ctrl [7:4] can be independently activated in the horizontal and vertical dimensions using adth_mat_ctrl [2] and adth_ma t_ctrl [3] , respectively. 4.4.3 output amplitude control the 3-bit lut output value can be scaled to a reduced dither amplitude using adth_mat_ctrl [5:4]. after adding the adth_mat_ctrl [7:6] to the (reduced) dither amplitude the final 3-bit amplitude is output as adth_out[2:0]. 4.4.4 miscellaneous during the adc clamp pulse, the output of the adth block is muted; that is the output value is set to 3 (adth_out[2:0] = 3). in addition, adth_clamp_ctrl[7:4] delays the clamp pulse by 0 to 15 clock cycles while muting, and adth_clamp_ctrl[3:0] adds 0 to 15 clock cycles of muting after the falling edge of the clamp pulse. for afe dither calibration, adth_out[2:0] can be programmed via adth_test_dither to a static value during vertical blanking.
register description by block ade3800 30/138 4.5 line lock pll (llk) the llk generates the adc input pixel sampling clock from an incoming hsync source and a multiplying factor (mfactor, aka clock). the loop filter parameters and skew (aka phase) can be tuned. the phase can be adjusted in steps of 72ps. the minimum llk generated clock frequency is 13.5 mhz. the pll filter has two states with independent filter parameters: fast and slow . if while in the fast state the phase detector error count remains below a programmable threshold ( llk_lock_tol ) for a programmable number of input lines ( llk_lock_line_nb ), the pll changes to the slow state. while in this state, the slow filter coefficients apply. in the event that phase detector errors should exceed llk_lock_tol for one or more lines, the pll returns to the fast state in one line, and fast filter coefficients again apply. table 14: adth registers register name addr mode bits rst description adth_mat_ctrl 03d0 r/w [7:6] 01 amplitude_offset adth_out[2:0] = (dither_amplitude + amplitude_offset) % 8 [5:4] dither_amplitude 0*: dither amplitude range: 0-7 1: dither amplitude range: 0-6 2: dither amplitude range: 0-5 3: dither amplitude range: 0-4 [3] 1: vertical start position of dither matrix changes by frame_offset [2] 1: horizontal start position of dither matrix changes by frame_offset [1] clamp polarity. to be set to 1. [0] 0: adth_out[2:0] = 3 1*: afe dither amplitude enabled adth_frame_ctrl 03d1 r/w [7:4] 00 frame_offset offset the start posit ion of the dither matrix from frame to frame by frame_offset. see frame_len. [3:0] frame_len reset dither matrix start position after frame_len +1 number of frames when frame_len > 0. see frame_offset. adth_clamp_ctrl 03d2 r/w [7:4] 00 clamp_begin delay and mute the clamp pulse by 0-15 clock cycles note: adth_out[2:0] = 3 during clamping/muting [3:0] clamp_end mute after the end of clamp pulse for 0-15 clock cycles note: adth_out[2:0] = 3 during clamping/muting adth_test_dither 03d3 r/w [2:0] 00 for afe dither amplitude (voltage) calibration. during vertical blanking adth_out[2:0] = test_dither
31/138 ade3800 register description by block the digital loop filter is controlled by two parameters: a and b. the a and b parameters control the response of the 2nd order digital filter. a and b are exponential coefficients. the relationship of these numbers to the classic 2nd order damping and natural frequency are as follows: damping = 2^ (ae-8) * sqrt(5 * mfactor / (2^( be+4) )) natural frequency = sqrt(mfactor * 5 * 2^ (be-30) ) note: typical value for the a and b parameters is 66h. the synthesized hsync supplied to smux is 50% duty cycle. table 15: line lock pll registers (sheet 1 of 2) register name addr mode bits rst description llk_ctrl 0800 r/w [6] 00 0*: use slow filter when coarse error is zero 1: use slow filter when lock condition is achieved r/w [5] mfactor shadow control 0*: simple shadow. apply new mfactor when mfactor_u is written. 1: shadow transfer on in_venab falling edge. r/w [4] 0*: lock to rising edge of input hsync 1: lock to falling edge of input hsync r/w [3:1] input hsync select 0*: hsync pin 1: sog0 2: sog1 3: sog2 4: ext_sog r/w [0] llk pll free run enable llk_sync_offset_mode 0801 r/w [3] 06 manual resync mode the llk pll requires a resync after any change of mfactor or offset. writing to this bit causes a one-time resync of the pll accumulator (cleared by h/w). r/w [2] resync every frame mode a r/w [1] resync on in_venab falling edge 1 r/w [0] resync on in_venab rising edge 1 llk_mfactor_l 0802 r/w [7:0] 80 mfactor[7:0] = in_htotal llk_mfactor_u 0803 r/w [3:0] 02 mfactor[11:8] llk_phase_rate_init 0804 r/w [7:0] 80 pll phase rate init freq = xclk_freq * 128 / phase_rate_init. llk_tc_aef 0805 r/w [3:0] 0a time constant a when out of lock llk_tc_bef 0806 r/w [3:0] 0a time constant b when out of lock llk_tc_aes 0807 r/w [3:0] 06 time constant a when in lock llk_tc_bes 0808 r/w [3:0] 06 time constant b when in lock llk_lock_tol 0809 r/w [7:0] 20 error limit for determining lock. lsb = 150ps (typ) llk_lock_line_nb 080a r/w [7:0] 30 line count for determining lock. - set when error is < lock_tol for lock_line_nb of lines. - cleared if error exceeds lock_tol.
register description by block ade3800 32/138 llk_offset_l llk_offset_u 080b 080c r/w r/w [7:0] [1:0] 00 00 phase offset [7:0] of adc sample clock. lsb is xclk_period/512 = 72ps. phase offset llk_pulse_high_ext 080d r/w [7] 00 inclk pulse extend enable r/w [2:0] inclk pulse extend value. lsb = 0.3ns (typ) llk_phase_rate_min 080e r/w [7:0] 14 phase rate minimum. sets the upper frequency limit of the pll. phase_rate_min = xclk_freq * 128 / max_inclk_freq. llk_stat_line_nb_l llk_stat_line_nb_u 080f 0810 r/w r/w [7:0] [7:0] 40 00 number of lines over wh ich statistics are gathered number of lines over wh ich statistics are gathered llk_stat_sum_abs_max_l llk_stat_sum_abs_max_u 0811 0812 r/w r/w [7:0] [7:0] 60 00 limit for sum of absolute errors llk_stat_max_abs_max 0813 r/w [7:0] 04 limit for absolute error llk_deadzone 0814 r/w [3:0] 02 coarse error deadzone, normal operation = 2. llk_status 0830 r [4] 00 max absolute error exceeded limit, not sticky r [3] sum of absolute errors exceeded limit, not sticky r [2] pll filter overflow condition, not sticky r [1] coarse error is zero status, not sticky r [0] lock status, not sticky llk_status_phase_rate_i_ 0 llk_status_phase_rate_i_ 1 llk_status_phase_rate_i_ 2 llk_status_phase_rate_i_ 3 0831 0832 0833 0834 r r/w r/w r/w [7:0] [7:0] [7:0] [5:0] 00 00 00 00 pll phase rate, free running readout. b llk_status_sum_abs_l llk_status_sum_abs_u 0835 0836 r r [7:0] [7:0] 00 00 sum of absolute errors readout llk_status_max_abs 0837 r [7:0] 00 max absolute error readout llk_mfactor_hw_l llk_mfactor_hw_u 0842 0843 r r [7:0] [7:0] 80 02 mfactor shadow hw readout llk_test 084f r/w [7:0] 00 reserved a. recommended setting for bits [2:0] = 110b b. phase rate period (in picoseconds) is: example: llk_status_phase_rate_i_[28:0] = 03335bdf , xtal = 27 mhz phase rate period = 7.409 ns frequency = 134.97 mhz table 15: line lock pll registers (sheet 2 of 2) register name addr mode bits rst description h aserate ps () llkstatusphaserate 28 0 [] 2 21 ? xtalperiod p s ( 128 ------------------------------------------------------------------------------------------------------------------------------- ---------------------- - =
33/138 ade3800 register description by block 4.6 sync retiming (srt) the sync retiming block retimes synchronization signals (e.g. hsync and vsync) into either the xclk or in-clock domains. srt provides the following: retimes all sync signals going to smeas into the xclk domain extracts vertical sync from composite sync signals divides sclk by up to 1024 for ac tivity detection purposes (smeas) generates a delayed version of vertical sync from a mux-selectable vertical sync source generates a coast signal in the xclk domain for the llpll measures the effect of the filter on marginal composite sync signals and returns a bad_filter flag retimes horizontal and vertical syncs into the inclk domain. 4.6.1 coast signal in composite or sog sync mode, hsync pulses may not exist during the vsync pulse signal and will cause the llk to unlock and loose track of hsync signal. coarse signal (also known as llk inhibit/free run signal) is used to generate a vertical pulse that wraps around the incoming vsync. coast pulse reference (0) is eith er edge of vsync, and its set and reset valu es are expressed in xclk units. figure 6: vertical sync extraction and filtering srt_vsync_sel[2]
register description by block ade3800 34/138 table 16: sync retiming registers (sheet 1 of 2) register name addr mode bits rst description srt_csync_inv 01e0 r/w [2] 00 invert vert sync signal extracted from internal sog comparator (sog_vs_inv) r/w r/w [1] invert vert sync extracted from composite sync signal on hsync pin (csync_vs_inv) r/w [0] invert filtered vert sync (filt_vs_inv) srt_csync_thr_l srt_csync_thr_u 01e1 01e2 r/w r/w [7:0] [3:0] 80 00 composite sync vertical sync extractor threshold (this is the narrowest hsyn c signal sent +50% as a safety margin) refer to figure 7 srt_vsync_sel 01e3 r/w [2:0] 00 filtered vert sync source select 0*: vsync pin 1: vsync from co mposite hsync pin 2: vsync from composit e sog[0] comparator 3: vsync from composit e sog[1] comparator 4: vsync from composit e sog[2] comparator 5: vsync from alternate sog source 6 - 7: reserved srt_vsync_thr_l srt_vsync_thr_u 01e4 01e5 r/w r/w [7:0] [3:0] 80 00 filtered vert sync delay srt_coast_vs_sel 01e6 r/w [3] 00 coast signal trigger edge 0*: rising edge of selected vsync 1: falling edge of selected vsync r/w [2:0] source selection for coast vsync trigger 0*: vsync pin 1: vsync from co mposite hsync pin 2: vsync from composit e sog[0] comparator 3: vsync from composit e sog[1] comparator 4: vsync from composit e sog[2] comparator 5: filtered and delayed vsync (normal) 6: vsync from alternate sog source 7: reserved srt_coast_rise_l srt_coast_rise_m srt_coast_rise_u 01e7 01e8 01e9 r/w r/w r/w [7:0] [7:0] [7:0] 00 00 00 rising edge of coast, in xclks from vsync trigger srt_coast_fall_l srt_coast_fall_m srt_coast_fall_u 01ea 01eb 01ec r/w r/w r/w [7:0] [7:0] [7:0] 00 00 00 falling edge of coast, in xclks from vsync trigger srt_hs_ctrl 01ee r/w [4] 00 edge of inclk on which to sample horizontal sync: 0*: rising edge 1: falling edge (normal) r/w [2:0] hsync sample selection for smux 0*: reserved 1: llk_hsync (normal) 2: sog0 3: sog1 4: sog2 5: ext_sog
35/138 ade3800 register description by block note: all thresholds are in xclk units. srt_vs_sel 01ef [5:4] 00 sclk div prescaler for smeas: 0*: 128 1: 256 2: 512 3: 1024 r [3] bad csync threshold. change srt_csync_thr until this is stable low. r/w [2:0] vert sync source select for re-sampling into inclk domain for smux: 0*: vsync pin 1: vsync from co mposite hsync pin 2: vsync from composit e sog[0] comparator 3: vsync from composit e sog[1] comparator 4: vsync from composit e sog[2] comparator 5: filtered and delayed vsync (normal) 6: vsync from alt sog source pin 7: reserved srt_coast_rise_hw_l srt_coast_rise_hw_m srt_coast_rise_hw_u 01f0 01f1 01f2 r r r [7:0] [7:0] [7:0] shadow read back srt_coast_fall_hw_l srt_coast_fall_hw_m srt_coast_fall_hw_u 01f3 01f4 01f5 r r r [7:0] [7:0] [7:0] table 16: sync retiming registers (sheet 2 of 2) register name addr mode bits rst description
register description by block ade3800 36/138 4.7 input sync measurement (smeas) the smeas block monitors input activi ty and measures input sync signals from all sources. all unused and reserved bits return as zero. smeas operates in th e crystal clock (xclk) domain. input sync functions: activity detection: detects input activity measurement: measures sync period and width 4.7.1 input sync - activity detection the activity block measures all sync sources in para llel. an active channel is defined as having a programmable number of rising edges within a programmable number of xclk cycles (= sample period). activity limits are set per channel class: clkdiv1k and hsync; vsync. the activity results are updated each sample period. software can select either: one shot: one time measurement free run: continuously running measurements figure 7: vsync up/down counter composite sync h pulse v pulse 1/8 1/4 3/4 7/8 threshold up up down down ok: good if v pulse width was too short for the chosen threshold (counter reaches 3/4th but goes down before 7/8th is reached): bad sync bit srt_vs_sel[3] would be set threshold extracted vsync up at 7/8 down at 1/8 bad sync area 0 error
37/138 ade3800 register description by block 4.7.2 input sync - measurement one set of (hsync, vsync) can be selected for measurement. software can request measurements in one of two ways: one shot ? one time measurement free run ? continuously running measurements. the measurement block also compares the me asured sync signals to programmable limits. xclks per vsync different by more than +/- 2^(xclk_vtol_exp[3:0]) xclks per hsync different by more than +/- 2^(xclk_htol_exp[3:0]) hsyncs per vsync different by more than +/- hsync_vtol[3:0] polarity. range check flags will be set when the measurements exceed the programmed tolerances. the flags will be updated on the completion of each measurement in free run mode. the flags maintain their state at the completion of a measurement while in one shot mode. when a measurement is started (asserting the measurement start bit) the range check flags are cleared. there are timeout registers to detect the absence of sync signals. the measurement block registers are grouped into four main categories: timeouts & tolerances measurements (obtained by a one-s hot or free-run mode of operation) reference values flags (indicators that measurements have timed out or measurements compared to reference values exceed tolerances). 4.7.3 fast mute the fast mute block continuously monitors one selected hsync signal and compares its period with an independent reference value and tolerance. a fast mute flag is set as soon as the measured period is outside the tolerance for more than 1, 2 or 3 times in a row. the fastmute range check flag can be combined with other reference checking flags with a mask-or function to make a sticky bit to mute the screen rapidly in the event of a mode change or dropped signal.
register description by block ade3800 38/138 note: timeout and tolerance use horizontal and vertical measurements. these can either be the horizontal or vertical syncs from an analog input or the local generated horizontal enable and/or vertical enable. table 17: smeas register definitions (sheet 1 of 6) register name addr mode bits rst description smeas_act_ctrl 0100 r/w [3] 00 free-run enable r/w [2] freeze results during free run mode. no meaning in one shot mode. 0*: do not freeze. new result will be available on the next and subsequent toggle of the polling bit. 1: freeze the current results. the polling bit will still toggle and the block continues to free run; however, results will not update. r/w [1] activity detection start. in one-shot mode setting this bit triggers the start of a measurement. this bit is reset to zero when the measurement is complete. no meaning in free run mode. r/w [0] activity detection mode. 0*: free-run mode 1: one-shot mode smeas_act_h_smptm_l smeas_act_h_smptm_u 0101 0102 r/w r/w [7:0] [7:0] 00 00 sample period value for clock or hsync activity. xclks [7:0] sample period value for clock or hsync activity. xclks [15:8] smeas_act_v_smptm_l smeas_act_v_smptm_u 0103 0104 r/w r/w [7:0] [7:0] 00 00 sample period value for vsync activity. xclks / 256 [7:0] sample period value for vsync activity. xclks / 256 [15:8] smeas_act_h_minedge 0105 r/w [7:0] 00 minimum edge count value for clk or hsync activity. smeas_act_v_minedge 0106 r/w [7:0] 00 minimum edge count value for vsync activity. smeas_h_tmot_l smeas_h_tmot_u 0107 0108 r/w r/w [7:0] [7:0] 00 00 timeout counter value for clk or horizontal measurement. xclks [7:0] timeout counter value for clk or horizontal measurement. xclks [15:8] smeas_v_tmot_l smeas_v_tmot_u 0109 010a r/w r/w [7:0] [7:0] 00 00 timeout counter value for vert ical measurement. xclks / 256 [7:0] timeout counter value for vert ical measurement. xclks / 256 [15:8] smeas_clear 0110 r/w [1] 00 clears smeas_status_range[7] sticky bit only. must be reset by software. [0] clears timeouts, measurements. must be reset by software.
39/138 ade3800 register description by block smeas_h_ctrl 0111 r/w [5] 00 measures hsync in the condition of no vsync r/w [4] free-run enable r/w [3] edge measurement selection for horizontal period events. 0*: rising edge. 1: negative edge. r/w [2] freeze results during free run mode. no meaning in one shot mode. 0*: do not freeze the results in free run mode. new results will be available on the next and subsequent toggle of the polling bit. 1: freeze the current results in free run mode. the polling bit will still toggle and the block continues to free run; however, results will not update. r/w [1] in free-run mode it enables measurements. in one-shot mode it triggers the start of a measurement and is reset to zero when the measurement is complete. r/w [0] 0*: free-run mode. 1: one-shot mode. smeas_v_ctrl 0112 r/w [4] 00 free-run enable r/w [3] edge measurement selection for vertical period events. 0*: rising edge. 1: negative edge. r/w [2] freeze results during free run mode. no meaning in one shot mode. 0*: do not freeze the results in free run mode. new result will be available on the next and subsequent toggle of the polling bit. 1: freeze the current results in free run mode. the polling bit will still toggle and the block continues to free run; however, results will not update. r/w [1] in free-run mode it enables measurements. in one-shot mode it triggers the start of a measurement and is reset to zero when the measurement is complete. r/w [0] 0*: free-run mode. 1: one-shot mode. table 17: smeas register definitions (sheet 2 of 6) register name addr mode bits rst description
register description by block ade3800 40/138 smeas_h_sel 0113 r/w [6:4] 00 fastmute input select 0*: hsync 1: hsync generated from llk 2: ext_sog 3: sog[0] 4: sog[1] 5: sog[2] 6,7: reserved r/w [3:0] h measurement input select 0*: hsync 1: hsync generated from llk 2: ext_sog 3: sog[0] 4: sog[1] 5: sog[2] 6-a: reserved b: inclk / 1024 (for test only) c: dotclk / 1024 (for test only) d: tcon enab (for test only) e: tcon hsync (for test only) f: sclk_div (for test only) smeas_v_sel 0114 r/w [7:4] 00 vertical high level duration measurement input select 0*: vsync pin 1: extracted vsync from hsync pin composite sync 2: extracted vsync from ext_sog composite sync 3: filtered vsync from srt block (normal condition) 4: sog[0] extracted vsync 5: sog[1] extracted vsync 6: sog[2] extracted vsync 7-f: reserved r/w [3:0] v measurement input select 0*: vsync pin 1: extracted vsync from hsync pin composite sync 2: extracted vsync from ext_sog composite sync 3: filtered vsync from srt block (normal condition) 4: sog[0] extracted vsync 5: sog[1] extracted vsync 6: sog[2] extracted vsync 7-f: reserved table 17: smeas register definitions (sheet 3 of 6) register name addr mode bits rst description
41/138 ade3800 register description by block smeas_status_mask a 0119 r/w [7] 00 enable mute function to respond to smeas_status_range[6] (hpol). r/w [6] enable mute function to respond to smeas_status_range[5] (vpol). r/w [4] enable mute function to respond to smeas_status_range[4] (fastmute). r/w [3] enable mute function to respond to smeas_status_range[3] (xpervhi). r/w [2] enable mute function to respond to smeas_status_range[2] (hperv). r/w [1] enable mute function to respond to smeas_status_range[1] (xperh). r/w [0] enable mute function to respond to smeas_status_range[0] (xperv). smeas_h_num_lines 011a r/w [7:0] 00 number of lines to measure fo r horizontal period per xclks, actual value = programmed value +1. range 1 ? 256. provides for a more accurate measurement. smeas_h_skip_l smeas_h_skip_u 011b 011c r/w r/w [7:0] [3:0] 00 00 number of horizontal reference edges to skip from selected vertical reference edge before starting horizontal measurement. smeas_hv_skew b 011d r [7:0] returns the minimum number of xclks between edges of the selected hsync and vsync. does not care about polarity. free running, updates once per frame. smeas_xk_htol_exp 012c r/w [3:0] 00 horizontal tolerance value. +/- 2^n xclks, n=[0..15] smeas_xk_vtol_exp 012d r/w [3:0] 00 vertical tolerance value. +/- 2^ n xclks, xk_v_high counter use this tolerance value as well. n=[0..15] smeas_hsync_vtol 012e r/w [3:0] 00 horizontal per vertical tolerance value. +/-n h(rising,falling) per v(rising,falling) smeas_fastmu_ctrl 0130 r/w [6:5] 00 fastmute coast 0*: llk coast (normal) 1: inverted venab 2, 3: no coast (always active) r/w [2:1] error count 0*: first error sets fastmute flag 1: two errors in a row needed to set fastmute 2: three errors in a row needed to set fastmute 3: reserved r/w [0] fastmute enable smeas_pol 0131 r [1] horizontal polarity 0: active low (-), 1 = active high (+) r [0] vertical polarity 0: active low (-), 1 = active high (+) smeas_fastmu_tol 0134 r/w [3:0] 00 tolerance for fast mute check +/-n xclks, n=[0..15] table 17: smeas register definitions (sheet 4 of 6) register name addr mode bits rst description
register description by block ade3800 42/138 smeas_status_mask2 0135 r/w [1] 00 enable mute function to respond to smeas_status_range2[1]. r/w [0] enable mute function to respond to smeas_status_range2[0]. smeas_act_polling 013f r [0] 00 activity detection polling bit. toggles when new results are ready in free-run. undefined in one-shot mode. smeas_ana_act 0140 r [7] 00 sog2 is active r [6] sog1 is active r [5] sog0 is active r [4] ext_sog pin is active r [3] comp vsync from ext_sog pin is active r [2] comp vsync from hsync pin is active r [1] hsync pin is active r [0] vsync pin is active smeas_sog_dly12 0141 r [7:4] 00 d2: delay in xclks between sog1 & sog2 falling edges r [3:0] d1: delay in xclks between sog0 & sog1 falling edges smeas_sog_dly34 0142 r [7:4] 00 d4: delay in xclks between sog1 & sog0 rising edges r [3:0] d3: delay in xclks between sog2 & sog1 rising edges smeas_ana_stuck 0143 r [4] 00 ext_sog is stuck at 1(high)/0(low) r [3] comp vsync from ext_sog is stuck at 1(high)/0(low) r [2] comp vsync from hsync pin is stuck at 1(high)/0(low) r [1] hsync pin is stuck at 1(high)/0(low) r [0] vsync pin is stuck at 1(high)/0(low) smeas_xk_per_h_l smeas_xk_per_h_m smeas_xk_per_h_u 0146 0147 0148 r r r [7:0] [7:0] [7:0] 00 00 00 xclks per horizontal [7:0] (result = actual - 2) xclks per horizontal [15:8] xclks per horizontal [23:16] smeas_xk_per_v_l smeas_xk_per_v_m smeas_xk_per_v_u 0149 014a 014b r r r [7:0] [7:0] [7:0] 00 00 00 xclks per vertical [7:0] xclks per vertical [15:8] xclks per vertical [23:16] smeas_h_per_v_l smeas_h_per_v_u 014c 014d r r [7:0] [7:0] 00 00 horizontal per vertical [7:0] horizontal per vertical [15:8] smeas_xk_v_hi_l smeas_xk_v_hi_m smeas_xk_v_hi_u 014e 014f 0150 r r r [7:0] [7:0] [7:0] 00 00 00 xclks per v high smeas_ref_fastmu_l smeas_ref_fastmu_u 0132 0133 r/w r/w [7:0] [3:0] 00 00 fastmute reference, xclks per hsync, one line only smeas_status_tmot 0151 r [1] 00 indicates that the horizontal measurement timed out. can only be cleared by sync reset or smeas all_clear. r [0] indicates that the vertical m easurement timed out. can only be cleared by sync reset or smeas all_clear. table 17: smeas register definitions (sheet 5 of 6) register name addr mode bits rst description
43/138 ade3800 register description by block 4.8 sync multiplexer (smux) the smux block provides the ability to: clamp (adc black level capture) pulse generation. generate data enable from incoming hsync/vsync signals. select which sync source is used as internal reference. vertical enable (venab) and clamp are always generated. smeas_status_range 0152 r [7] 00 the meas_sticky_status bit is an or of the status_mask bits anded with their corre sponding non-sticky range status flags. this bit is sticky and can only be cleared by a write to smeas_clear[1]. the sticky bi t goes to the scaler as a signal to blank the output screen. r [6] indicates that the hpol measur ement does not currently equal the reference value. not sticky. r [5] indicates that the vpol meas urement does not currently equal the reference value. not sticky. r [4] indicates that the fastmute measurement is currently exceeding the ref+tol. not sticky. r [3] indicates that the xclks per vhi measurement is currently exceeding the ref+tol. not sticky. r [2] indicates that the horizontal per vertical measurement is currently exceeding the ref+tol. not sticky. r [1] indicates that the xclks pe r horizontal measurement is currently exceeding the ref+tol. not sticky. r [0] indicates that the xclks per vert ical measurement is currently exceeding the ref+tol. not sticky. smeas_meas_polling 0153 r [1] 00 horizontal measurement polling bit. toggles upon completion of each measurement in free-run mode while smeas_h_ctrl[1] = 1. undefined in one-shot mode. r [0] vertical measurement polling bit. toggles upon completion of each measurement in free-run mode while smeas_v_ctrl[1] = 1. undefined in one-shot mode. smeas_status_range2 0155 r [1] indicates the current state of t he line buffer pointer crossing error check in the scaler. r [0] indicates the current state of the output sequencer trigger- out-of-range error check a. the mask can apply in any mode of operation, it does not need to onl y apply to the sticky bit setting. b. adjust vsync delay and/or filterin g in the srt block to achieve an hv_skew >= 6 to prevent vsync jitter sensitivity in the smux and smeas blocks. table 17: smeas register definitions (sheet 6 of 6) register name addr mode bits rst description
register description by block ade3800 44/138 synthesized signals are generated relative to the reference signal and selected edge . clean picture position wrap around is supported in both horizontal and vertical directions (+/- half a line in horizontal and +/- half a frame in vertical). programmed position and size values must be less than the respective horizontal and vertical totals. figure 8: block diagram table 18: sync multiplexer registers (sheet 1 of 3) register name addr mode bits rst description smux_ctrl_0 0200 r [7] 00 toggle on vsync edge as programmed in bit 5 r/w [6] 0*: clamp on all lines 1: clamp not during coast r/w [5] v edge select 0*: falling 1: rising r/w [4] h edge select 0*: falling 1: rising r/w [3:0] input select 0*: llk_hsync, srt_vsync (normal) 1: hsync input signal, vsync input signal 2-e: reserved f: hsync = tcon.srtd6 output vsync = tcon.srtd7 output input signals internal signal selector output signal selector output signals in_sel ctrl1[3:0] h,v reference signals out_sel hcount vcount
45/138 ade3800 register description by block smux_ctrl_1 0201 r/w [7] 00 shadow event edge select 0*: falling 1: rising r/w [6:4] register shadow event 0*: no event (upper byte write) 1: in_venab 2: in_enab 3: vtrigger 4: vtrigger count 0 5-7: reserved r/w [3:0] output select must be set to 0 smux_clamp_pos_l smux_clamp_pos_u 0202 0203 r/w r/w [7:0] [3:0] 00 00 clamp pulse position relative to hsync reference edge smux_clamp_width_l smux_clamp_width_u 0204 0205 r/w r/w [7:0] [3:0] 00 00 clamp width in inclks smux_hpos_l smux_hpos_u 0206 0207 r/w r/w [7:0] [3:0] 00 00 horizontal data position relative to hsync reference edge smux_hpix_l smux_hpix_u 0208 0209 r/w r/w [7:0] [3:0] 00 00 horizontal data width smux_vpos_l smux_vpos_u 020a 020b r/w r/w [7:0] [3:0] 00 00 vertical trigger position in lines relative to vsync reference edge. should be used for changing position to minimize screen glitches. smux_vpix_l smux_vpix_u 020c 020d r/w r/w [7:0] [3:0] 00 00 vertical data height smux_vtrig_l smux_vtrig_u 020e 020f r/w r/w [7:0] [3:0] 00 00 delay in lines from smux_vpos to the first line of a new frame smux_clamp_pos_hw_l smux_clamp_pos_hw_u 0210 0211 r r [7:0] [3:0] 00 00 shadow readback smux_clamp_width_hw_l smux_clamp_width_hw_u 0212 0213 r r [7:0] [3:0] 00 00 shadow readback smux_hpos_hw_l smux_hpos_hw_u 0214 0215 r r [7:0] [3:0] 00 00 shadow readback smux_hpix_hw_l smux_hpix_hw_u 0216 0217 r r [7:0] [3:0] 00 00 shadow readback table 18: sync multiplexer registers (sheet 2 of 3) register name addr mode bits rst description
register description by block ade3800 46/138 note: a shadow readback register retains the previously programmed value until the relevant event occurs. there is one shadow readback register for each register in the smux block. smux_vpos_hw_l smux_vpos_hw_u 0218 0219 r r [7:0] [3:0] 00 00 shadow readback smux_vpix_hw_l smux_vpix_hw_u 021a 021b r r [7:0] [3:0] 00 00 shadow readback smux_vtrig_hw_l smux_vtrig_hw_u 021c 021d r r [7:0] [3:0] 00 00 shadow readback table 19: horizontal parameters table 20: vertical parameters table 18: sync multiplexer registers (sheet 3 of 3) register name addr mode bits rst description h blanking h back porch h start h front porch h sync width h data raw h sync llk h sync (50% duty cycle) smux reference h position h total h total / 2 llk reference edge v blanking v back porch v start v front porch v sync width v enable v sync smux_vtrig smux reference v trig v total smux reference edge v position 1 line
47/138 ade3800 register description by block 4.9 data measurement (dmeas) dmeas provides a number of pixel measurement f unctions for autosetup (f ind the best phase, adc sampling clock, picture auto-position) and autocolor (autolevel, adc analog range tuning for black and white calibration). most dmeas measurement functions are performed within a programmable input image boundary defined by the top left and bottom right window coordinate registers. the image boundary can be full screen. dmeas also includes an annex block called de size and is decribed at the end of this spec. all unused or reserved bits will return as zero. the dmeas block only processes the 7 msbs of the 10 bit adc outputs. consequently the maximum pixel value seen by dmeas is fe. the horizontal and vertical position measurements are relative to the selected reference sync edges and must be offset before programming smux image position, refer to chapter 4.8: sync multiplexer (smux) for more information. 4.9.1 function summary the algorithms grouped together are executed simultaneously. the color, threshold, mode control, window control, and output registers are shared for all measurements, and are used according to the algorithm selected to measure. 4.9.2 window control all measurements occur within a window in a single frame. the window is defined by the upper left (min_x, min_y) and lower right (max_x, max_y) corn ers (inclusive). window coordinates are relative to sync pulses. a window defined from (0,0) ? (fff , fff) would go from sync to sync (full screen). the sync reference edge selection is programmable. 4.9.3 algorithm control the available measurements are described in detail below. most algorithms can be run over each or all color channels. most algorithms also contain a threshold value to zero out noise and / or amplify edges. algorithm mode ctrl result color thresh window control edge intensity 00 pixel sum 00 one shot one shot 32 bit edge_out 32 bit psum_out r/g/b/all r/g/b/all ye s no ye s ye s min / max 01 pcd 01 one shot one shot 8 bit min / 8 bit max 24 bit pcd_out r/g/b/all r/g/b/all no ye s ye s ye s hpos / vpos 02 one shot 12 bit hpos_min 12 bit hpos_max 12 bit vpos_min 12 bit vpos_max all yes yes de_size 03 one shot / free run 16 bit de_size_out 1 bit de_mismatch none no no
register description by block ade3800 48/138 algorithm , color , threshold , or window control changes should be made at the end of a valid measurement, otherwise they will corrup t the current measurement in progress: set dmeas parameters for the desired measurement start the measurement (don?t change the parameters above) wait until measurement completion. 4.9.4 mode control all measurements (except de_size) are performe d in one shot mode. for de_size measurement, software can request measurements in one of two ways: one shot ? synchronous with respect to the micro controller free run ? asynchronous with respect to the micro controller note: the block indicates when a measurement is valid. in one shot mode the measurement is completed through an auto clear of the start condition. in free run mode when the measurement is completed a polling bit toggles. a freeze bit is provided to freeze the results. measurements still continue while result registers are frozen. 4.9.5 edge intensity the edge intensity measurement is the sum of the absolute value of the delta between adjacent pixels. a programmable threshold is applied to zero out noise and amplify edges. equation: delta_val = abs(pixela ? pixelb) ? threshold; delta_val = delta_val < 0 ? 0: delta_val; sum += delta_val; for all 3 color channels: sum += delta_val on red channel + delta_val on green channel + delta_val on blue channel the measurement includes all transitions inside the defined window. measurement window : the edge intensity is computed over a defined window as described in window control. color channels : a specific color channel (r/g/b) or all color channels (all) can be applied to the edge intensity. result : the output at the end of the measurement is a 32-bit number. 4.9.6 pixel sum the pixel sum is the sum of all selected pixels for either a specific color channel or all color channels. measurement window : the pixel sum is computed over a defined window as described in window control. color channels : a specific color channel (r/g/b) or all color channels (all) can be applied to the pixel sum. result : the output at the end of the measurement is a 32 bit number. 4.9.7 min / max the min / max reports the minimum and maximum pixel found.
49/138 ade3800 register description by block measurement window : the min / max value is found over a defined window as described in window control. color channels : a specific color channel (r/g/b) or all color channels (all) can be applied to the min / max value. result : the output at the end of the measurement is two 8 bit numbers, the minimum pixel value and the maximum pixel value. 4.9.8 pixel cumulative distribution (pcd) pcd function reports the total number of pixels greater than (or less than) a programmable threshold. to switch between pixels greater than or pixel less than the threshold, a control bit is provided in the mode register when requesting a measurement. measurement window : the pcd value is calculated over a defined window as described in window control. color channels : a specific color channel (r/g/b) or all color channels (all) can be applied to the pcd function. result : the output at the end of the measurement is a 24 bit number. 4.9.9 h position min / max horizontal position measures the start and end of video data in inclks relative to the reference edge of hsync. data horizontal start is defined as the number of inclks between the selected edge of hsync and the ?first data pixel?. first data pixel definition is either: 1. first pixel > a programmable threshold value (normal) 2. first pixel with the absolute value (current pixel ? previous pixel) is > a programmable threshold value data horizontal end is defined as the number of inclks between reference edge of hsync and the ?last data pixel plus one?. the search for the last pixel ends at the end of a window. last data pixel plus one is either: 1. pixel after the last pixel that is > a programmable threshold value (normal) 2. last pixel with the absolute value (current pixel ? previous pixel) is > a programmable threshold value to switch between the two threshold methods used in the first and last pixel, a control bit is provided in the dmeas_mode_ctrl register when requesting a measurement. the first and last pixels are measured for each line, and the earliest first and latest last for the selected pixel area are reported out at the end of the measurement. measurement window : the first / last pixel on a line is found over a defined window as described in window control. color channels : all color channels are used to find the first / last pixel on a line. result : the output at the end of the measurement is two 12 bit numbers, h position min and h position max.
register description by block ade3800 50/138 4.9.10 v position min / max vertical position measures the start and end of video data in lines relative to the reference edge of vsync. data vertical start is defined as the number of lines between the selected edge of vsync and the ?first data pixel?. first data pixel definition is either: 1. first pixel > a programmable threshold value (normal) 2. first pixel with the absolute value (current pixel ? previous pixel) is > a programmable threshold value data vertical end is defined as the number of lines between reference edge of vsync and the ?last data pixel plus one?. the search for the last pixel ends at the end of a window. last data pixel plus one is either: 1. pixel after the last pixel that is > a programmable threshold value (normal) 2. last pixel with the absolute value (current pixel ? previous pixel) is > a programmable threshold value to switch between the two threshold methods used in the first and last pixel, a control bit is provided in the dmeas_mode_ctrl register when requesting a measurement. measurement window : the selected pixel area range for y the range is vsync to vsync. the selected range for x is not applicable. color channels : all color channels are used to find the first / last line in a frame. result : the output at the end of the measurement is two 12 bit numbers, v position min and v position max. 4.9.11 de size de size measures the number of inclks per de. at the end of the measurement (de falling edge), the measured value is compared to a programmed expected value +/- a programmed threshold. if the expected value is within the threshold the de_size_mismatch flag is not set. if the measured size is outside of the threshold the de_size_mismatch flag is set. in free run mode the results are updated every line. the de_size_mismatch flag is set at de falling edge and reset at de rising edge. in one shot mode the results are updated once and stay that way until they are cleared by software. the de_size_mismatch flag can only be cleared when the reset flag bit is set by software. result : 16 bit measured value.
51/138 ade3800 register description by block table 21: dmeas registers (sheet 1 of 3) register name addr mode bits rst description dmeas_aec_ctrl 0900 r/w [7: 6] 00 color selection 00*: all 01: red 10: green 11: blue [5] vsync edge selection 0*: rising edge 1: falling edge [4] hsync edge selection 0*: rising edge (normal) 1: falling edge [2] must be programmed to 1 [1:0] algorithm selection 00*: edge intensity & pixel sum 01: min / max & pcd 10: h position and v position 11: de size
register description by block ade3800 52/138 dmeas_mode_ctrl 0901 r/w [7] 00 de reset 0*: do not reset the de_mismatch_flag 1: reset the de_mismatch_flag r/w [6] de freeze 0*: update i2c registers after every measurement in free run mode 1: freeze de size results in i2c registers and do not update while this bit is active r/w [5] de one shot 0*: free run mode. 1: one shot mode. applies only to de_size measurement. all other measurements are always in one_shot mode. r/w [3] h_v_pos_sel / pcd_sel - if algorithm = 01 (pcd_sel) 0*: pixel < threshold 1: pixel >= threshold - if algorithm = 10 (h_v_pos_sel) 0*: pixel > threshold (normal) 1: abs (pixel - previous pixel) > threshold r/w [2] dmeas all clear all internal result registers are cleared when this bit is set. this bit is self clearing. r [1] dmeas polling bit. toggles at the end of each measurement in free-run mode. undefined in one-shot mode. r/w [0] dmeas start data measurement start. this bit is auto-cleared by hw when the measurement is completed. dmeas_threshold 0902 r/w [7:0] 00 threshold value to use for selected algorithm. dmeas_win_min_x_l dmeas_win_min_x_u 0903 0904 r/w r/w [7:0] [3:0] 00 00 minimum x for window control to use with all algorithms. dmeas_win_max_x_l dmeas_win_max_x_u 0905 0906 r/w r/w [7:0] [3:0] ff 00 maximum x for window control to use with all algorithms. dmeas_win_min_y_l dmeas_win_min_y_u 0907 0908 r/w r/w [7:0] [3:0] 00 00 minimum y for window control to use with all algorithms. dmeas_win_max_y_l dmeas_win_max_y_u 0909 090a r/w r/w [7:0] [3:0] ff 00 maximum y for window control to use with all algorithms. dmeas_de_ref_l dmeas_de_ref_h 090b 090c r r [7:0] [7:0] 00 00 de size expected result dmeas_de_tol 090d r [7:0] 00 de tolerance value table 21: dmeas registers (sheet 2 of 3) register name addr mode bits rst description
53/138 ade3800 register description by block 4.10 scale (scl) ade scales input video to output panel resolution without external video frame memory. this requires tuning of the panel timing parameters to make the vertical active time match the panel?s. features: separable 3v x 4h polyphase filter: ? 3 line filter for h resolutions <= 1024 ? 2 line filter for h resolutions > 1024 independent h & v kernel register storage ? 64 phases are interpolated from 6v or 10h reference points ? symmetric kernels only ? coefficients range from ?2 to +1 63/64 simple pointer collision feedback mechanism 2-way 3 rd generation context sensitive filtering dmeas_data_0 090e r [7:0] 00 refer to ta bl e 2 2 below dmeas_data_1 090f r [7:0] 00 dmeas_data_2 0910 r [7:0] 00 dmeas_data_3 0911 r [7:0] 00 dmeas_data_4 0912 r [7:0] 00 dmeas_data_5 0913 r [7:0] 00 dmeas_data_6 0914 r [7:0] 00 dmeas_data_7 0915 r [7:0] 00 table 22: dmeas output registers assignment alg_sel = 00 alg_sel = 01 alg_sel = 10 alg_sel = 11 dmeas_data_0 edge_out [7:0] min_out [7:0] hpos_min [7:0] de_size_out [7:0] dmeas_data_1 edge_out [15:8] max_out [7:0] hpos_min [11:8] de_size_out [15:8] dmeas_data_2 edge_out [23:16] pcd_out [7:0] hpos_max [7:0] de_mismatch_flag dmeas_data_3 edge_out [31:24] pcd_out [15:8] hpos_max [11:8] n/a dmeas_data_4 psum_out [7:0] pcd_out [23:16] vpos_min [7:0] n/a dmeas_data_5 psum_out [15:8] n/a vpos_min [11:8] n/a dmeas_data_6 psum_out [23:16] n/a vpos_max [7:0] n/a dmeas_data_7 psum_out [31:24] n/a vpos_max [11:8] n/a table 21: dmeas registers (sheet 3 of 3) register name addr mode bits rst description
register description by block ade3800 54/138 background color management for formulae to program the registers refer to chapter 7: scaler equations on page 132 . 4.10.1 frame synchronization due to the limited pixel memory of the chip, the output active video needs to be perfectly synchronized with the input active video. this mode of operation is called frame lock . figure 9: frame lock operation table 23: scale registers (sheet 1 of 3) register name addr r/w bits rst description scl_src_hpix_l scl_src_hpix_u 0a00 0a01 r/w r/w [7:0] [3:0] 00 00 input horizontal resolution scl_src_vpix_l scl_src_vpix_u 0a02 0a03 r/w r/w [7:0] [3:0] 00 00 input vertical resolution scl_scalefach_l scl_scalefach_m scl_scalefach_u 0a04 0a05 0a06 r/w r/w r/w [7:0] [7:0] [0] 00 00 00 17-bit horizontal scale factor scl_scalefacv_l scl_scalefacv_m scl_scalefacv_u 0a07 0a08 0a09 r/w r/w r/w [7:0] [7:0] [0] 00 00 00 17-bit vertical scale factor scl_orighpos_l scl_orighpos_u 0a0a 0a0b r/w r/w [7:0] [7:0] 00 00 2?s complement , signed number 27-bit horizontal position of the first output pixel scl_origvpos_l scl_origvpos_u 0a0c 0a0d r/w r/w [7:0] [7:0] 00 00 2?s complement , signed number 27-bit vertical position of the first output pixel scl_pipe_rate_l scl_pipe_rate_u 0a0e 0a0f r/w r/w [7:0] [3:0] 00 00 programmable update rate, which controls when a new pixel column is read out of the line buffer. for (sclk==dotclk) && (dest_hpix == in_hpix), pipe_rate = 0.
55/138 ade3800 register description by block scl_h_kernel_0 0a10 r/w [7:0] 00 horizontal filter kernel 2?s complement, signed numbers ranging from ?2 to +1 63/64 scl_h_kernel_1 0a11 r/w [7:0] 00 scl_h_kernel_2 0a12 r/w [7:0] 00 scl_h_kernel_3 0a13 r/w [7:0] 00 scl_h_kernel_4 0a14 r/w [7:0] 00 scl_h_kernel_5 0a15 r/w [7:0] 00 scl_h_kernel_6 0a16 r/w [7:0] 00 scl_h_kernel_7 0a17 r/w [7:0] 00 scl_h_kernel_8 0a18 r/w [7:0] 00 scl_h_kernel_norm 0a19 r/w [7:0] 40 2?s complem ent, signed number used to normalize the h filter kernel (usually 64) scl_v_kernel_0 0a1a r/w [7:0] 00 vertical filter kernel 2?s complement, signed numbers ranging from ?2 to +1 63/64 has a ? line shift compared to hkernel and must be programmed to a 2 line kernel when in_hpixel > 1024. scl_v_kernel_1 0a1b r/w [7:0] 00 scl_v_kernel_2 0a1c r/w [7:0] 00 scl_v_kernel_3 0a1d r/w [7:0] 00 scl_v_kernel_4 0a1e r/w [7:0] 00 scl_v_kernel_norm 0a1f r/w [7:0] 40 2?s complem ent, signed number used to normalize the v filter kernels (usually 64) scl_bgcolor_b 0a20 r/w [7:0] 00 blue component of background color, refer to figure 21 scl_bgcolor_g 0a21 r/w [7:0] 00 green component of background color, refer to figure 21 scl_bgcolor_r 0a22 r/w [7:0] 00 red component of background color, refer to figure 21 scl_bgcolor_ctrl 0a23 r/w [7] 00 1: force background color r/w [4] mute color select: 0*: black 1: use background color when smeas_status_range[7] is high r/w [3:2] 0*: line replicate 1 1: line replicate 2 2: line replicate 3 3: vertical border blend r/w [1:0] 0*: pixel replicate 1 1: pixel replicate 2 2: pixel replicate 3 3: horizontal border blend scl_ptr_pre_l scl_ptr_pre_u 0a24 0a25 r r [7:0] [3:0] 00 00 the minimum difference of the write pointer and the first of three read pointers; updated every frame lsb = 4 pixels not valid when scl_control[3] = 1 table 23: scale registers (sheet 2 of 3) register name addr r/w bits rst description
register description by block ade3800 56/138 for proper scale operation, the sclk frequency must be programmed so that: scl_ptr_post_l scl_ptr_post_u 0a26 0a27 r r [7:0] [3:0] 00 00 the minimum difference of the write pointer and the last of three read pointers; updated every frame lsb = 4 pixels scl_control 0a28 r/w [4] 00 allow trigger delay count to be retriggered by smux vtrig (normal = 0) r/w [3] use two tap vertical filter 0*: in hpixel <= 1024 1: in_hpixel > 1024 ptr_pre is invalid in this case r/w [2] allow output sequencer to be retriggered before vtotal_min (normal = 0) r/w [1] completes the current frame then stops the sequencer. poll the vcount register to determine when frame has stopped. r/w [0] enable scaler timing engine (output sequencer) scl_vcount 0a29 r [7:0] output sequencer vertical counter >> 4 scl_htotal_l scl_htotal_u 0a2a 0a2b r/w r/w [7:0] [3:0] 00 00 desired output htotal - 1 out_htotal should be even note: out_henab should be a multiple of 4 for rsds dual scl_vtotal_min_l scl_vtotal_min_u 0a2c 0a2d r/w r/w [7:0] [3:0] 00 00 minimum vcount before a new frame can be started scl_vtotal_max_l scl_vtotal_max_u 0a2e 0a2f r/w r/w [7:0] [3:0] 00 00 vcount at which the output s equencer will self trigger to maintain a minimum frame rate to the panel scl_trigger_dly_l scl_trigger_dly_m scl_trigger_dly_u 0a30 0a31 0a32 r/w r/w r/w [7:0] [7:0] [3:0] 00 00 00 time in xclks from smux vt rig to when vcount/hcount of the output sequencer are reset to 0,0. scl_line_start_l scl_line_start_u 0a33 0a34 r/w r/w [7:0] [3:0] pipe start value = 4.5 -origin_hpos*4096/scale_factor_h -(21.5+5*4096/ pipe_rate)*sclk_period/dotclk_period if pipe_rate = 0, use 4096. scl_context_0 0a35 r/w [6:1] 00 context sharp offset r/w [0] enable context function (normal) scl_context_1 0a36 r/w [7:6] 00 contex t smooth slope (recommended = 1, 2, 3) r/w [5:4] context sharp slope r/w [3:0] context sharp clip table 23: scale registers (sheet 3 of 3) register name addr r/w bits rst description
57/138 ade3800 register description by block 1 sclk_freq is greater than the max of dclk_freq and ( in_hpixel x dclk_freq) / dest_hpixel; 2 sclk_freq < 140 mhz 3 scl_line_start > 0; and 4 scl_pipe_rate <= 4096 the frame synchronization between input and output can be fine tuned using the line buffer pointer crossing feedback registers, scl_ptr_pre and scl_ptr_post. by adjusting the scl_trigger_dly, pointer crossing can be eliminated. 4.10.2 context description the context function allows the scaler to mix the output of three filters (sharp, normal kernel and smooth) on a per pixel basis depending on the local contrast in a 3vx4h area. the sharpening suppresses ringing / overshoots. those 3 kernels: smooth, user (defined with h and v kernel coefficients) and sharp run in parallel and can be blended together to finally generate a panel pixel. if context is disabled, only user kernel is used. if context is enabled, then the blending of the 3 kernels follows the diagram below. the horizontal axis is the context: context 0 = all neighbour pixels (3x3) have almost same rgb values (greyscale). context f = all neighbour pixels (3x3) have very different rgb values (1x1 black and white checker pattern). context is used along with i2c programmable coefficients to make the kernel blending ratio, as the drawing below shows. refer to the context mixing equations for more details. the vertical axis has 63 steps. (63 = 100%).
register description by block ade3800 58/138 only 2 kernels can be blended together. smooth wins over sharp. context mixing equations: contrast = max(max(r0,r1,..)-min(r0,r1,..), max(g0,g1,..)-min(g0,g1,..), max(b0,b1,..)- min(b0,b1,..)), 6b value, [0..63] sharp_mix = clip((contrast >> (3-sharp_slope)) ? sharp_offset, 0 , sharp_clip), 4b value, [0..15] smooth_mix = (sharp_mix == 0) * (15 ? clip((contr ast << smooth_slope), 0, 15)), 4b value, [0..15] normal_mix = 16 ? sharp_mix ? smooth_mix, [1,,16] note: it is recommended to enable the context feature all the time with: scl_context_0 = 01 scl_context_1 = 80 4.10.3 scale kernel example recommended kernel is: nearest neighbor for 1x scale modes (no scaling) cubic for > 1x scale modes (upscaling) bilinear for < 1x scal modes (downscaling) register address no scaling down scaling up scaling nearest neighbor bilinear ?-0.7? cubic ?-0.5? cubic h_kernel_0 0a10 00 00 00 00 100% smooth slope smooth normal kernel sharp clip sharp input contrast sharp slope sharp offset output mix
59/138 ade3800 register description by block note: upscaling and downscaling can be simultaneously combined horizontally and vertically. 4.11 pattern generator (pgen) the pgen block can generate graphic patterns to support debug and test tasks for lcd panels such as horizontal or vertical bicolor stripes, bicolor checkers, color bars, gray scales or color scales. it is also possible to pass through the rgb signal coming from the scl block. note: the pgen block is located before the srgb color management block. 4.11.1 overview the following features of the pgen block overlap each other like layers, defining display priorities: bars (lowest display priority) cells and grids borders tcon window control (highest display priority) bars and cells are freely programmable in size and independently of each other. a border is a horizontal or vertical borderline. if enabled, it has priority over the above settings. above all, a tcon window , if enabled, restrains all pgen settings to a given display area. h_kernel_1 0a11 00 00 fe fe h_kernel_2 0a12 00 00 fa fc h_kernel_3 0a13 00 00 f9 fb h_kernel_4 0a14 00 00 ff 00 h_kernel_5 0a15 00 10 10 0f h_kernel_6 0a16 20 20 26 24 h_kernel_7 0a17 40 30 39 38 h_kernel_8 0a18 40 40 41 40 h_kernel_norm 0a19 40 40 40 40 v_kernel_0 0a1a 00 00 fb fa v_kernel_1 0a1b 00 00 f9 fa v_kernel_2 0a1c 00 00 ff fe v_kernel_3 0a1d 00 10 10 0d v_kernel_4 0a1e 00 20 23 22 v_kernel_norm 0a1f 40 40 40 40 register address no scaling down scaling up scaling nearest neighbor bilinear ?-0.7? cubic ?-0.5? cubic
register description by block ade3800 60/138 4.11.2 color mask sequencer 4.11.2.1 bars and groups a bar is the basic graphic element of the pgen. a bar group is based on two independently programmable 24 bit rgb colors named c0 and c1 and programmed into: for c0: pgen_p0_color _r_c0, pgen_p 0_color _g_c0, pgen_p0_color _b_c0 for c1: pgen_p0_color _r_c1, pgen_p 0_color _g_c1, pgen_p0_color _b_c1 each color c0 and c1 is assigned to 1 to 8 consecutive bars. the number of bars minus 1 is programmable in pgen_p0_mode, bits [7:5] for c0 and [4:2] for c1: 4.11.2.2 bar width, height and offset control bar?s height and width are programmable, resp ectively in pgen_p0_wdth and pgen_p0_hght (16-bit wide).the actual number of displayed bars depends on the bar width, height and the panel resolution. the bars are numbered in incremental fashion from left to right, top to bottom. if the combined size of all bars in a group is smaller than the display area, each of the c0 and c1 bar groups is replicated across the display, as long as the bars still fit in the display area: the height and width of a bar can range anywhere from 1 pixel (checkerboard) to full screen. additionally, an offset in both directions can be programmed respectively in registers pgen_p0_wdth_x_offset and pgen_p0_hght_y_offset. it shifts the top left corner (1st bar of c0 group) off the display area. note: the offset value, for each direction, must be less than the corresponding bar size. 4.11.2.3 color masks each bar can filter any r g b component of its assigned c0 or c1 color, by means of 3 mask bits per bar in registers pgen_p0_seq_col0_col1 (bars 0 & 1) thru pgen_p0_seq_col6_col7 (bars 6 & 7). the color is ?anded? with the mask: if either r g b bit is reset, the corresponding colour component is blocked if set, the colour component is not blocked example: pgen_color_c0_b = pgen_color _c0_g = pgen_color _c0_r = ff sets c0 to white pgen_p0_mode is set to ac: number of bars in c0 = pgen_p0_mode[7:5] +1 = 6 (bars 0 to 5) bar group bar 0 bar 1 bar 2 bar 3 bar 4 bar 5 bar 6 bar 7 one group per colour c0 and c1 up to 8 bars per colour part of bars off screen: display not entirely area bar 0 bar 1 bar 2 bar 3 bar 4 bar 5 bar 0 bar 1 bar 2 bar 3 c0 c0 c0 c0 c0 c0 c1 c1 c1 c1 displayed bar 1 bar 2 bar 3 bar 4 bar 5 bar 0 bar 1 bar 2 bar 3 bar 0 c0 c0 c0 c0 c0 c1 c1 c1 c1 c0 bar 2 bar 3 bar 4 bar 5 bar 0 bar 1 bar 2 bar 3 bar 0 c0 c0 c0 c0 c1 c1 c1 c1 c0 bar 1 c0 bar c0 bar c1 next bar in c0 group last bar in c0: proceed to 1st bar in c1 6 4
61/138 ade3800 register description by block number of bars in c1 = pgen_p0_mode[4:2] +1 = 4 (bars 0 to 3) pgen_p0_seq_col0_col1 = 42: bar 0 filters g and b components but lets r pass: this 1st bar is displayed in red bar 1 filters r and b components but lets g pass: this 2nd bar is displayed in green pgen_p0_seq_col2_col3 = 17: bar 2 filters r and g components but lets b pass: this 3rd bar is displayed in blue bar 3 does not filter any of the r g b components: this 4th bar is displayed in white pgen_p0_seq_col4_col5 = 77: bars 4 and 5 do not filter r g b and are displayed in white . pgen_p0_seq_col6_col7 is don?t care, since a maximum of 6 bars is used by c0 and c1. across the display, 6 bars [ red ] [ green ] [ blue ] [white] [white] [white] (from c0 group) are now displayed, followed by 4 bars [ red ] [ green ] [ blue ] [white] (from c1 group), then again 6 bars from c0 group etc.. until the right border of the display area is reached: the bars also repeat vertically. 4.11.2.4 gradient control the gradient control registers modify the colors c0 and c1 as follows: pgen_p0_graddelta_r: increment the red value by this register value pgen_p0_graddelta_g: increment the green value by this register value pgen_p0_graddelta_b: increment the blue value by this register value pgen_p0_gradstep_x: apply the increment value to each color every x horizontal pixels pgen_p0_gradstep_y: apply the increment value to each color every y vertical lines col sequence: (?bar0? = 5, ?bar1? = 3 ) & = & = c0 c0 c0 c0 c0 c0 c0 c0 c1 c1 c1 c1 c1 c1 c1 c1 rg b 2 r gb 0 r g b 1 rgb 3 rgb 4 rgb 5 rgb 6 rgb 7 rg b 2 r gb 0 r g b 1 rgb 3 rgb 4 rgb 5 rgb 6 rgb 7 2 01 3 4 5 6 7 2 0 1 3 4 5 6 7 width (in pix) width (in pix) width (in pix) width (in pix) rgbmasks (3 bit each) seq_colx_colx rgbcolors (24 bit) resulting pattern: disabled disabled identical mask sets
register description by block ade3800 62/138 note: the values wrap over ff: for example, a value of ff for graddelta will decrease the color by 1 (if graddelta was 50: 50+ff=4f=graddelta-1) all kinds of color shades can be achieved by wisely using the above parameters. 4.11.3 8 x 8 grid layout with optional resets a cell is a graphic element grouped by 8 in a grid . a set of 8 grid registers pgen_grid0 to pgen_grid7 represents an 8x8 bitmap where ea ch bit represents one rectangular cell: this makes a total grid of 8x8 cells. each cell either displays the bar pattern defined above, or the input video signal, depending on the value in its corresponding pgen_grid register: all cells have the same size, defined by one horizontal and one vertical grid pitch registers pgen_grid_x and pgen_grid_y (16-bit wide). additionally, an offset in both directions can be programmed respectively in registers pgen_p0_wdth_x_offset and pgen_p0_hght_y_offset. it shifts the top left corner (1st cell of grid 0) off the display area. note: the offset value, for each direction, must be less than the corresponding cell size. the actual number of displayed cells depends on the programmed cell size: if it makes the complete 8x8 grid bigger than the total display area, only the cells or part of cells that are included in the display area are displayed. any cell (on the right and bottom sides) outside the display area is ignored and not displayed pixels by increasing numbers grid 0 cell pgen or video signal grid 1 grid 2 grid 3 grid 4 grid 5 grid 6 grid 7 msb lsb
63/138 ade3800 register description by block if it makes the complete 8x8 grid smaller than the total display area, the 8x8 pattern repeats itself across the entire display area, both vertically and horizontally 4.11.3.1 cell reset when pgen_p0_mode[1] bit is set, the bar counters will be reset to bar 0, and gradients color counters will be reset to the default color value c0, each time a new grid cell is reached. this is to be combined with bar offset settings (refer to section 4.11.2.2: bar width, height and offset control and the example provided hereafter). for example, this will affect all patterns with non-zero values for pgen_p0_grad step_x and/or pgen_p0_gradstep_y. 4.11.3.2 color c0 replacement when pgen_p0_mode[0] bit is set, the input video signal takes the place of color c0. in that case, non-zero gradients will apply the increment value to each r g b color of the input signal, not c0. note: if the displayed picture has noticiable jitter, the input r g b values are not stable and may generate heavy noise on screen when the gradient applied to r g b values rolls over from ff to 00. 4.11.4 borders the border generator adds a single pixel wide borderline to the panel area. there are 4 edges: top, bottom, left and right. each edge can be enabled independently, and programmed to one of 8 basic colors using a 3-bit rgb mask: figure 10: 8x8 grip mapping example table 24: borders colors colour red green blue value black 0 0 0 0 blue 0 0 1 1 green 0 1 0 2 cyan 0 1 1 3 red 1 0 0 4 magenta 1 0 1 5 yellow 1 1 0 6 grid 0 01234567 grid 0 01234567 this last part of grid 0 grid 1 01234567 grid 1 01234567 01234567 grid 0 01234567 grid 1 grid?s width and height the display area: grids repeat both display area one grid with 8 cells 1 cell horizontally and this bottom part of grid 1 (all cells) is not displayed (cells 1 to 7) is not displayed are smaller than vertically
register description by block ade3800 64/138 the borders override the graphic pattern. in addition, the left and right edges override the top and bottom ones: for example, when both left and top side borders are enabled, the upper left corner has the color of the left side border. example: pgen_enab = 01 enables pgen pgen_x_tot_l = 00, pgen_x_tot_h = 05 considering that the panel is 1280 pixels wide pgen_y_tot_l = 00, pgen_y_tot_h = 04 considering that the panel is 1024 pixels high pgen_b_top_bot = ee adds a yellow horizontal borderline to top and bottom of display area pgen_b_lft_rht = 9a adds a blue vertical borderline to the left and a green one to the right 4.11.5 tcon window control normally, the whole pgen block is enabled if its global enable bit pgen_enab[0] is set. if it is not set but the bit pgen_enab[1] is set instead, the programmed pattern will show only inside a rectangular window defined by the associated tcon signal tcon_x_pgen. outside this window, the input video stream will be displayed as generated by the scaler. note: if the global enable bit pgen_enab[0] is set, it has priority over pgen_enab[1]. white 1 1 1 7 table 25: pattern generator registers (sheet 1 of 3) register name addr mode bits rst description pgen_enab 0600 r/w [1] 00 window control via tcon signal 0*: disable, use global enable bit 0 below 1: enable pgen by tcon_x_pgen r/w [0] global pgen enable bit 0*: disable 1: enable (this bit overrides bit 1 above) pgen_x_tot_l pgen_x_tot_u 0601 0602 r/w r/w [7:0] [3:0] 00 00 screen total horizontal size in pixels table 24: borders colors colour red green blue value pgen pattern displayed here tcon window input video signal displayed everywhere else
65/138 ade3800 register description by block pgen_y_tot_l pgen_y_tot_u 0603 0604 r/w r/w [7:0] [3:0] 00 00 screen total vertical size in lines pgen_b_top_bot 0605 r/w [7] 00 top border enable bit r/w [6:4] top border r g b color enable bits r/w [3] bottom border enable bit r/w [2:0] bottom border r g b color enable bits pgen_b_lft_rht 0606 r/w [7] 00 left border enable bit r/w [6:4] left border r g b color enable bits r/w [3] right border enable bit r/w [2:0] right border r g b color enable bits pgen_grid0 0607 r/w [7:0] 00 grid ?s row 0 0: select p0 (bar pattern) 1: select input signal (from scaler) pgen_grid1 0608 r/w [7:0] 00 grid ?s row 1 pgen_grid2 0609 r/w [7:0] 00 grid ?s row 2 pgen_grid3 060a r/w [7:0] 00 grid ?s row 3 pgen_grid4 060b r/w [7:0] 00 grid ?s row 4 pgen_grid5 060c r/w [7:0] 00 grid ?s row 5 pgen_grid6 060d r/w [7:0] 00 grid ?s row 6 pgen_grid7 060e r/w [7:0] 00 grid ?s row 7 pgen_grid_x_l pgen_grid_x_u 060f 0610 r/w r/w [7:0] [3:0] 00 00 grid cells width, in pixels pgen_grid_y_l pgen_grid_y_u 0611 0612 r/w r/w [7:0] [3:0] 00 00 grid cells height, in lines pgen_grid_x_offset_l pgen_grid_x_offset_u 0613 0614 r/w r/w [7:0] [3:0] 00 00 grid?s horizontal offset, in pixels pgen_grid_y_offset_l pgen_grid_y_offset_u 0615 0616 r/w r/w [7:0] [3:0] 00 00 grid?s vertical offset, in lines pgen_p0_mode 0617 r/w [7:5] 00 number of bars in c0 (actual number -1) r/w [4:2] number of bars in c1 (actual number -1) r/w [1] cell reset enable r/w [0] video replaces c0 enable pgen_p0_color_b_c0 0618 r/w [7:0] 00 color c0 ? blue pgen_p0_color_g_c0 0619 r/w [7:0] 00 color c0 ? green pgen_p0_color_r_c0 061a r/w [7:0] 00 color c0 ? red pgen_p0_color_b_c1 061b r/w [7:0] 00 color c1 ? blue pgen_p0_color_g_c1 061c r/w [7:0] 00 color c1 ? green table 25: pattern generator registers (sheet 2 of 3) register name addr mode bits rst description
register description by block ade3800 66/138 examples all examples assume that the display panel size is 1280x1024 and no pattern is preset, therefore: pgen_x_tot_l = 00, pgen_x_tot_h = 05 pgen_y_tot_l = 00, pgen_y_tot_h = 04 all other registers are 00 a stable picture is being displayed example 1 pgen_grid0 = pgen_grid7 = 00 generated pattern is enabled on all 8 cells of grid 0 (top) and grid 7 (bottom) pgen_grid1..6 = 7e generated pattern is enabled on 1st and 8th cells only of grid 1 thru 6 pgen_grid_x_l = 1280 / 8 cells per grid across screen = a0, pgen_grid_x_h = 00 pgen_grid_y_l = 1024 / 8 lines across screen = 80, pgen_grid_y_h = 00 pgen_p0_mode = 00 color c0 uses 1 bar (bar 0) only pgen_p0_color_r_c1 061d r/w [7:0] 00 color c1 ? red pgen_p0_seq_col0_col1 061e r/w [6:4] 00 bar 0: r g b color mask r/w [2:0] bar 1: r g b color mask pgen_p0_seq_col2_col3 061f r/w [6:4] 00 bar 2: r g b color mask r/w [2:0] bar 3: r g b color mask pgen_p0_seq_col4_col5 0620 r/w [6:4] 00 bar 4: r g b color mask r/w [2:0] bar 5: r g b color mask pgen_p0_seq_col6_col7 0621 r/w [6:4] 00 bar 6: r g b color mask r/w [2:0] bar 7: r g b color mask pgen_p0_wdth_l pgen_p0_wdth_u 0622 0623 r/w r/w [7:0] [3:0] 00 00 bar width, in pixels pgen_p0_hght_l pgen_p0_hght_u 0624 0625 r/w r/w [7:0] [3:0] 00 00 bar height, in lines pgen_p0_wdth_x_offset_l pgen_p0_wdth_x_offset_u 0626 0627 r/w r/w [7:0] [3:0] 00 00 bar horizontal offset, in pixels pgen_p0_hght_y_offset_l pgen_p0_hght_y_offset_u 0628 0629 r/w r/w [7:0] [3:0] 00 00 bar vertical offset, in lines pgen_p0_graddelta_b 062a r/w [7:0] 00 blue gradient delta pgen_p0_graddelta_g 062b r/w [7:0] 00 green gradient delta pgen_p0_graddelta_r 062c r/w [7:0] 00 red gradient delta pgen_p0_gradstep_x 062d r/w [7:0] 00 gradient horizontal step, in pixels pgen_p0_gradstep_y 062e r/w [7:0] 00 gradient vertical step, in lines table 25: pattern generator registers (sheet 3 of 3) register name addr mode bits rst description
67/138 ade3800 register description by block pgen_p0_seq_col0_col1 = 70 bar 0 does not block any of the r g b colors pgen_p0_color_b_c0 = 00 pgen_p0_color_g_c0 = ff define color c0 as light green pgen_p0_color_b_c0 = 00 pgen_enable = 01 enable pgen this displays a thick green block that surrounds the original picture in the center . now, if pgen_p0_graddelta_g = ff and pgen_p0_gradstep_x = 05, the solid green is turned into one linear horizontal shade of green, evenly spread over the horizontal axis from left (light green) to right (black). additionally, if pgen_p0_mode = 02, the gradient registers are preset to color c0 each time a new grid cell is displayed; this gives 8 distinct shades of green (1 per cell) across the display. example 2 pgen_grid0, 2, 4, 6 = 00 all cells of these grids display the pattern pgen_grid1, 3, 5, 7= 80 1st cell of these grids displays the real picture pgen_grid_x_l = 00, pgen_grid_x_h = 05 the 1st cell takes the entire display width pgen_grid_y_l = 1024 / 8 lines across screen = 80, pgen_grid_y_h = 00 one cell takes 1/8th of the display height, so that all 8 grids will be displayed pgen_p0_mode = 80 color c0 uses 4 bars (bars 0 1 2 3) pgen_p0_seq_col0_col1 = 74 bar 0 does not block any of the r g b colors (displays c0 as is) bar 1 blocks g and b colors (displays r only) pgen_p0_seq_col2_col3 = 21 bar 2 blocks r and b colors (displays g only) bar 3 blocks r and g colors (displays b only) pgen_p0_color_b_c0 = pgen_p0_color_g_c0 = pgen_p0_color_b_c0 = 00: c0 is black pgen_p0_graddelta_r = pgen_p0_graddelta_g = pgen_p0_graddelta_b = 01: r g b color components of c0 gradually increase from left to right pgen_p0_gradstep_x = 05: shade is even ly spread over the horizontal axis pgen_enable = 01 enable pgen this displays a complex pattern made of 8 horizontal rows: 1st row (= bar 0) displays a shade of white , from left (black) to right (white) 3rd row (= bar 1) displays a shade of red , from left (black) to right (light red) 5th row (= bar 2) displays a shade of green , from left (black) to right (light green) 7th row (= bar 3) displays a shade of blue , from left (black) to right (light blue) 2nd, 4th, 6th and 8th rows display the original picture when displaying the same pattern from an external pattern generator, since each row of each color is displayed side by side with the same reference shade row generated by the pgen, defects can be spotted immediately. this is a very useful test to see possible adc or panel defects.
register description by block ade3800 68/138 4.12 srgb (srgb) the srgb block performs two primary functions: 1. parametric gamma correction on multiple wind ows or full screen, used for video enhancement in a window and digital contrast/brightness control. the window coordinates are set by tcon registers. 2. 3d color cube warping rgb color space. the entire backend of the ade3800 (from scaler output to the apc) has a 10 bit database including the srgb block. the srgb controls correspond to the 8 msbs of the data. 4.12.1 parametric gamma, digital contrast / brightness on multiple windows the function can be applied to the entire window by programming the window control to full screen. each color channel acts independently. simple digital contrast and brightness can be programmed using this hardware function. the desired windo w coordinates are programmed into the tcon. note: if both gamma1 and gamma2 are enabled, gamma1 has priority over gamma2. 4.12.2 color space warp the 8 corners of the color cube are independently co ntrolled in 3d space with smooth interpolation of intermediate colors. registers are 2?s complement color deltas. for example: to make white more like red, program srgb_white_r to a small positive value. to turn red into green, set gain = 2 in srgb_ctrl0[7:6], then srgb_red_r = 0x80 (-128) to block the red, and srgb_red_g=0x30 (the higher the value (up to 0x7f) the brighter the green). the step value for each color delta depends on the gain setting in srgb_ctrl0[7:6], as follows: figure 11: color space warp table 26: color space warp gain control srgb_ctrl0[7:6] g ain step size color delta range 0 1 0.5 [-64;+63] 1 2 1 [-128;+127] 2 4 2 [-256;+255] color space warp in out
69/138 ade3800 register description by block note: it is recommended to limit the range of all red/green/blue correction registers and black/red/green/ blue/yellow/cyan/magenta/white delta registers to [-64..+63] to avoid color overflow/underflow computation. table 27: srgb registers (sheet 1 of 2) register name addr mode bits rst description srgb_ctrl0 0d00 r/w [7:6] 00 gain control of srgb coeff values 0*: gain = 1 (half step) 1: gain = 2 (single step) 2: gain = 4 (double step) r/w [5:4] 00*: gamma2 disabled 01: gamma2 full screen 10: gamma2 windowed 11: reserved r/w [3:2] 00*: gamma1 disabled 01: gamma1 full screen 10: gamma1 windowed 11: reserved r/w [1:0] 00*: srgb disabled 01: srgb full screen 10: srgb windowed 11: reserved srgb_ctrl1 0d01 r/w [4] 00 0*: dither pattern disabled (normal) srgb_ctrl2 0d02 r/w [3] 00 white point saturation inside gamma2 window 0*: disabled 1: enabled r/w [2] white point saturation inside gamma1 window 0*: disabled 1: enabled r/w [1] white point saturation inside srgb window 0*: disabled 1: enabled r/w [0] white point saturation over full screen 0*: disabled 1: enabled srgb_black_b 0d03 r/w [7:0] 00 black point bluedelta srgb_black_g 0d04 r/w [7:0] 00 black point green delta srgb_black_r 0d05 r/w [7:0] 00 black point red delta srgb_red_b 0d06 r/w [7:0] 00 red point blue delta srgb_red_g 0d07 r/w [7:0] 00 red point green delta srgb_red_r 0d08 r/w [7:0] 00 red point red delta srgb_green_b 0d09 r/w [7:0] 00 green point bluedeltablue srgb_green_g 0d0a r/w [7:0] 00 green point green delta srgb_green_r 0d0b r/w [7:0] 00 green point reddelta srgb_blue_b 0d0c r/w [7:0] 00 blue point bluedelta srgb_blue_g 0d0d r/w [7:0] 00 blue point green delta srgb_blue_r 0d0e r/w [7:0] 00 blue point red delta
register description by block ade3800 70/138 srgb_yellow_b 0d0f r/w [7:0] 00 yellow point bluedelta srgb_yellow_g 0d10 r/w [7:0] 00 yellow point green delta srgb_yellow_r 0d11 r/w [7:0] 00 yellow point red delta srgb_cyan_b 0d12 r/w [7:0] 00 cyan point bluedelta srgb_cyan_g 0d13 r/w [7:0] 00 cyan point green delta srgb_cyan_r 0d14 r/w [7:0] 00 cyan point red delta srgb_magenta_b 0d15 r/w [7:0] 00 magenta point bluedelta srgb_magenta_g 0d16 r/w [7:0] 00 magenta point green delta srgb_magenta_r 0d17 r/w [7:0] 00 magenta point red delta srgb_white_b 0d18 r/w [7:0] 00 white point bluedelta srgb_white_g 0d19 r/w [7:0] 00 white point green delta srgb_white_r 0d1a r/w [7:0] 00 white point red delta srgb_wsat_lim_b 0d1b r/w [7:0] ff white point saturation value for the bluecomponent srgb_wsat_lim_g 0d1c r/w [7:0] ff white point saturation value for the green component srgb_wsat_lim_r 0d1d r/w [7:0] ff white point saturation value for the red component srgb_gamma1_con_b 0d1e r/w [7:0] 00 first par ametric contrast correction, bluecomponent srgb_gamma1_con_g 0d1f r/w [7:0] 00 first param etric contrast correction, green component srgb_gamma1_con_r 0d20 r/w [7:0] 00 first param etric contrast correction, red component srgb_gamma1_bri_b 0d21 r/w [7:0] 00 first par ametric brightness correction, bluecomponent srgb_gamma1_bri_g 0d22 r/w [7:0] 00 first param etric brightness correction, green component srgb_gamma1_bri_r 0d23 r/w [7:0] 00 first param etric brightness correction, red component srgb_gamma1_gam_b 0d24 r/w [7:0] 00 first par ametric gamma correction, bluecomponent srgb_gamma1_gam_g 0d25 r/w [7:0] 00 first par ametric gamma correction, green component srgb_gamma1_gam_r 0d26 r/w [7:0] 00 first par ametric gamma correction, red component srgb_gamma2_con_b 0d27 r/w [7:0] 00 second par ametric contrast correction, bluecomponent srgb_gamma2_con_g 0d28 r/w [7:0] 00 second param etric contrast correction, green component srgb_gamma2_con_r 0d29 r/w [7:0] 00 second param etric contrast correction, red component srgb_gamma2_bri_b 0d2a r/w [7:0] 00 second param etric brightness correction, bluecomponent srgb_gamma2_bri_g 0d2b r/w [7:0] 00 second paramet ric brightness correction, green component srgb_gamma2_bri_r 0d2c r/w [7:0] 00 second param etric brightness correction, red component srgb_gamma2_gam_b 0d2d r/w [7:0] 00 second parametric gamma correction, bluecomponent srgb_gamma2_gam_g 0d2e r/w [7:0] 00 second par ametric gamma correction, green component srgb_gamma2_gam_r 0d2f r/w [7:0] 00 second par ametric gamma correction, red component table 27: srgb registers (sheet 2 of 2) register name addr mode bits rst description
71/138 ade3800 register description by block 4.13 gamma (gam) the gamma block implements three independent 256 point gamma curves for each of r, g, and b channels. its features are as follows: 256x8b table per color channel stores 2?s complement difference to straight line 10b input/output (0 to 1023), range of delta = -128 to +127 (+/- 1/8 th full scale) double lut amplitude control to change range to 2 x (delta = -256 to +254) fast write mode for loading 3 tables with the same data glitch free write mode clipping on output to [0,1023] programmable offset_value added from offset_p osition0 to offset_position1 (inclusive). gamma_out_r = gamma_in_r + lut_r + (offset_position0 <= gamma_in_r <= offset_position1) ? offset_value: 0 gamma_out_g = gamma_in_g + lut_g + (offset_position0 <= gamma_in_g <= offset_position1) ? offset_value: 0 gamma_out_b = gamma_in_b + lut_b + (offset_position0 <= gamma_in_b <= offset_position1) ? offset_value: 0 table 28: gamma registers i2c address label addr mode bits rst description gam_ctrl 0c00 r/w [3] 00 0*: delta range = -128 to +127 1: delta range = -256 to +254 [2] 0*: i2c to ram transfer at selected i2c address only 1: i2c to ram transfer the same value to red, green, and blue rams when selecting red ram addresses [1] 0*: write i2c to ram allowed during active video 1: write i2c to ram during video blanking only (shadowed) [0] 0*: gamma bypassed 1: gamma enabled gam_position0 0c01 r/w [7:0] 00 if (gamma_i n/4 >= offset_position0 && gamma_in/4 <= offset_position1) then offset = offset_value * 16 else offset = 0 (gamma_out = gamma_in + lut + offset) gam_position1 0c02 r/w [7:0] 00 s ee offset_position0 for details gam_offset 0c03 r/w [5:0] 00 multipled by 16. 2?s complement number represents ?512 to +496 inclusive. see offset_position0 for details
register description by block ade3800 72/138 note: ram access requires dotclk >= xclk (refer to chapter 4.22: i2c registers and ram addresses ) 4.14 on-screen display (osd) the on-screen display block has the following features: registers 4900 ? 4915 are shadowed and are updated on the falling edge of out_venab. pointers for the global ram refer to 24 bit word locations. pointers for the color lut ram re fer to 32 bit word locations. write access to the rams is shadowed. read access to the global ram is shadowed. display list must be in top to bottom order for consistent operation.one ram block 4096x24 is used for the full operation of the osd, and is in ternally subdivided for character use or display list with the ability to set up the pointers through i2c. the characters can be displayed anywhere on the screen. h/v position is programmable per row global alpha blending for all the characters displayed as well as alpha blending per color with 16 levels h/v flip per character 1bpp/2bpp/3bpp/4bpp characters supported. rotation support color lut of 64 colors (24bit rgb true color + 4 bit alpha). table 29: gamma lut ram addresses i2c address memory contents 1000 ? 10ff red ram 1100 ? 11ff green ram 1200 ? 12ff blue ram table 30: osd registers (sheet 1 of 3) register name addr mode bits rst description osd_ram 1700- 46ff r/w i2c address space allocated for osd ram osd_clut 4700- 47ff r/w i2c address space allocated for osd clut
73/138 ade3800 register description by block osd_ctrl0 4900 r/w [7:4] 00 global alpha lsb = 1/15 r/w [3] rotation 0*: 12h x 18v char 1: 18h x 12v char r/w [2] tcon highlight window palette index r/w [1] tcon highlight window enable r/w [0] osd enable osd_ctrl1 4901 r/w [7] 00 osd list pointer select r/w [6:0] total osd rows osd_glbl_x_offset_l osd_glbl_x_offset_u 4902 4903 r/w r/w [7:0] [3:0] 00 00 global osd xpos offset in pixels osd_glbl_y_offset_l osd_glbl_y_offset_u 4904 4905 r/w r/w [7:0] [3:0] 00 00 global osd ypos offset in pixels osd_cp_1bpp_l osd_cp_1bpp_u 4906 4907 r/w r/w [7:0] [3:0] 00 00 1bpp char pointer osd_cp_2bpp_l osd_cp_2bpp_u 4908 4909 r/w r/w [7:0] [3:0] 00 00 2bpp char pointer osd_cp_3bpp_l osd_cp_3bpp_u 490a 490b r/w r/w [7:0] [3:0] 00 00 3bpp char pointer osd_cp_4bpp_l osd_cp_4bpp_u 490c 490d r/w r/w [7:0] [3:0] 00 00 4bpp char pointer osd_dlp0_l osd_dlp0_u 490e 490f r/w r/w [7:0] [3:0] 00 00 display list pointer0 osd_dlp1_l osd_dl1_u 4910 4911 r/w r/w [7:0] [3:0] 00 00 display list pointer1 osd_clut_1bpp 4912 r/w [4:0] 00 base color lut for 1bpp osd_clut_2bpp 4913 r/w [4:0] 00 base color lut for 2bpp osd_clut_3bpp 4914 r/w [4:0] 00 base color lut for 3bpp osd_clut_4bpp 4915 r/w [4:0] 00 base color lut for 4bpp table 30: osd registers (sheet 2 of 3) register name addr mode bits rst description
register description by block ade3800 74/138 osd_osd_ctrl0_hw 4920 r [7:0] 00 hw shadow readback osd_osd_ctrl1_hw 4921 r [7:0] 00 osd_glbl_x_offset_hw_l 4922 r [7:0] 00 osd_glbl_x_offset_hw_u 4923 r [3:0] 00 osd_glbl_y_offset_hw_l 4924 r [7:0] 00 osd_glbl_y_offset_hw_u 4925 r [3:0] 00 osd_cp_1bpp_hw_l 4926 r [7:0] 00 osd_cp_1bpp_hw_u 4927 r [3:0] 00 osd_cp_2bpp_hw_l 4928 r [7:0] 00 osd_cp_2bpp_hw_u 4929 r [3:0] 00 osd_cp_3bpp_hw_l 492a r [7:0] 00 osd_cp_3bpp_hw_u 492b r [3:0] 00 osd_cp_4bpp_hw_l 492c r [7:0] 00 osd_cp_4bpp_hw_u 492d r [3:0] 00 hw shadow readback osd_dlp0_hw_l 492e r [7:0] 00 osd_dlp0_hw_u 492f r [3:0] 00 osd_dlp1_hw_l 4930 r [7:0] 00 osd_dlp1_hw_u 4931 r [3:0] 00 osd_clut_1bpp_hw 4932 r [4:0] 00 osd_clut_2bpp_hw 4933 r [4:0] 00 osd_clut_3bpp_hw 4934 r [4:0] 00 osd_clut_4bpp_hw 4935 r [4:0] 00 table 30: osd registers (sheet 3 of 3) register name addr mode bits rst description
75/138 ade3800 register description by block figure 12: osd ram row 0 row 4095 1701 1700 1702 1704 1703 1705 1707 1706 1708 46fe 46fd 46ff 46fb 46fa 46fc 4096 rows 24 bits 1 byte 1 byte 1 byte osd ram address start (1700h) i2c address = osd_dp address + (row x 3) + 0 ... 2 number of bytes in a row 46f8 46f7 46f9
register description by block ade3800 76/138 4.14.1 implementation note: the character attribute [chardepthindex] selects which of the 2 char depths will be used from rowattribute [chardepth0] or rowattribute [chardepth1]. row type 0 attributes: (total 48 bits) [y position] 12 bits (hpos) [x position] 12 bits (ypos) [type of row] 2 bits (tr) [char/row] 7 bits (cr) [palette] 1 bits (pi) [fliphv] 2 bits (hvf) [chardepth0] 2 bits (cd0) [chardepth1] 2 bits (cd1) not used [bg] 4 bits (bg) [fg] 4 bits (fg) row type 0 ? character attributes: (total 8 bits) [charid] 8 bits (cid) row type 1 attributes: (total 48 bits) [y position] 12 bits (hpos) [x position] 12 bits (ypos) [type of row] 2 bits (tr) [char/row] 7 bits (cr) [palette] 1 bits (pi) not used [fliphv] 2 bits (hvf) not used [chardepth0] 2 bits (cd0) [chardepth1] 2 bits (cd1) [bg] 4 bits (bg) [fg] 4 bits (fg) row type 1 ? character attributes: (total 12 bits) [charid] 8 bits (cid) [fliphv] 2 bits (hvf) [chardepthindex] 1 bits (cd) [paletteindex] 1 bits (pi)
77/138 ade3800 register description by block note: only two types of char depths can be used, and they are specified in rowattribute [chardepth0]. figure 13: display list memory st ructure (all the bits are packed) row type 2 attributes: (total 48 bits) [y position] 12 bits (hpos) [x position] 12 bits (ypos) [type of row] 2 bits (tr) [char/row] 7 bits (cr) [palette] 1 bits (pi) not used [fliphv] 2 bits (hvf) not used [chardepth0] 2 bits (cd0) not used [chardepth1] 2 bits (cd1) not used [bg] 4 bits (bg) [fg] 4 bits (fg) row type 2 ? character attributes: (total 16 bits) [charid] 8 bits (cid) [fliphv] 2 bits (hvf) [chardepth] 2 bits (cd) [paletteindex] 4 bits (pi) row type 0 row type 1 row type 2
register description by block ade3800 78/138 note: all row attributes are assigned as shown: note: character attributes for row type 0 are assigned as shown: note: character attributes for row type 1 are assigned as shown: note: character attributes for row type 2 are assigned as shown: 4.14.2 color lut calculation color pointers in the clut [5:0], where: pi = 4-bit palette index (rt0/rt1 have 1--bit pi; rt2 has 4bit pi) ; p1, p2, p3, p4 = 5-bit programmable pointers, clut_1bpp, clut_2bpp, clut_3bpp, clut_4bpp, respectively; pixeldata = 2-bit, 3-bit or 4-bit value depending on the character depth 2bpp, 3bpp or 4bpp, respectively; c = 4-bit background/foreground color (used only for 1bpp characters); tcon = osd_ctrl0[1] * tcon_window where tcon_window is a signal from the tcon block specifying the window to be highlighted. 4.14.3 alpha blending 4-bit alpha is applied to the osd providing 16 levels (6.25% steps) of blending. alpha = 0f:no blending at all (100% osd data). alpha = 00:full blending (100% input video). the osd region has a 4-bit global alpha and each rgb has a 4-bit color alpha. ypos[23:12] xpos[11:0] fg[23:20] bg[19:16] cd1[15:14] cd0[13:12] hvf[11:10] pi[9] cr[8:2] tr[1:0] cid[7:0] pi[11] cd[10] hf[9] vf[8] cid[7:0] pi[15:12] cd[11:10] hf[9] vf[8] cid[7:0] rowtype0 rowtype1 rowtype2 1bpp (tcon*osd_ctrl0[2]*32 + !tcon*32*pi + p1 + bc) % 64 (tcon*osd_ctrl0[2]*32 + !tcon*32*pi + p1 + bc) % 64 (tcon*osd_ctrl0[2] *(8 + pi%8)*4 + !tcon*4*pi + p1 + bc) % 64 2bpp (tcon*osd_ctrl0[2]*32 + !tcon*32*pi + p2 + pixeldata) % 64 (tcon*osd_ctrl0[2]*32 + !tcon*32*pi + p2 + pixeldata) % 64 (tcon*osd_ctrl0[2] *(8 + pi%8)*4 + !tcon*4*pi + p2 + pixeldata) % 64 3bpp (tcon*osd_ctrl0[2]*32 + !tcon*32*pi + p3 + pixeldata) % 64 (tcon*osd_ctrl0[2]*32 + !tcon*32*pi + p3 + pixeldata) % 64 (tcon*osd_ctrl0[2] *(8 + pi%8)*4 + !tcon*4*pi + p3 + pixeldata) % 64 4bpp (tcon*osd_ctrl0[2]*32 + !tcon*32*pi + p4 + pixeldata) % 64 (tcon*osd_ctrl0[2]*32 + !tcon*32*pi + p4 + pixeldata) % 64 (tcon*osd_ctrl0[2] *(8 + pi%8)*4 + !tcon*4*pi + p4 + pixeldata) % 64
79/138 ade3800 register description by block total alpha is calculated as follows: r_o = (r_i[9:0] + ( ({lut_data[23:16],lut_data[23:22]} - r_i[9:0]) * total_alpha) ) g_o = (g_i[9:0] + ( ({lut_data[15:8] ,lut_data[15:14]} - g_i[9:0]) * total_alpha) ) b_o = (b_i[9:0] + ( ({lut_data[7:0] ,lut_data[7:6]} - b_i[9:0]) * total_alpha) ) total_alpha_selector[7:0] = (glbl_alpha[3:0] * color_alpha[3:0]) the total alpha read from a lut of 32 entries that are normalized, where the range is total_alpha = 0,1,2,3,4...16; and only the 5 msb?s of to tal_alpha_selector[7:3] are used as select. i.e. 16 represents 1.0 "no alpha blending at all". figure 14 shows how the alpha blending is constructed: figure 14: osd alpha blending
register description by block ade3800 80/138 ram address = 4700h ram address = 47ffh
81/138 ade3800 register description by block 4.14.4 ram memory character memory: 175 x 12 x 18 x 1 bpp = 37800 bits 42 x 12 x 18 x 4 bpp = 36288 bits the total character storage ram is estimated based on supporting 175 x 1bpp and 42 x 4bpp characters. total ram allocated for character storage => 74088 bits figure 15: global memory assignment ram address = 1700h ram address = 46ffh
register description by block ade3800 82/138 display list: row attr. 48 bits x 15 rows = 720 bits char attr. 16 bits x 30 chars x 15 rows = 7200 bits the total display list is estimated based on the current osd size of 30x15 characters. total display list memory => 7920 bits total osd estimated ram memory: 82008 bits (ram selected 98304 bits) color lut: 64 x 32 = 2048 bits for a 30x15 character display the osd block global ram has room remaining for: global 24b ram is programmed in the following order: example ... and so on ?.. similarly, the color lut 32b ram, is programmed in the following order: example ... and so on ?.. 255 => 1bpp (room for 418 char, but only 255 can be addressed w/ 8bit cid) or, 209 => 2bpp or, 139 => 3bpp or, 104 => 4bpp write 00 [data] -> ram_addr 0 [23: 16] write 01 [data] -> ram_addr 0 [15: 8] write 02 [data] -> ram_addr 0 [ 7: 0] write 03 [data] -> ram_addr 1 [23: 16] write 04 [data] -> ram _addr 1 [15: 8] write 00 [alpha] -> lut_addr 0 [27:24] write 01 [ r ] -> lut_addr 0 [23:16] write 02 [ g ] -> lut_addr 0 [15: 8] write 03 [ b ] -> lut_addr 0 [ 7: 0] write 04 [alpha] -> lut_addr 1 [27:24]
83/138 ade3800 register description by block each character is programmed into the ram starting with the upper left pixel, and it continues going to the right bottom. for example, programming of a 1bpp character ?b? will be as follows: i2c i2c comm. address data write 00 00 -> ram_address 0 [23:16] write 01 00 -> ram_address 0 [15 :8] write 02 00 -> ram_address 0 [7 :0] write 03 7f -> ram_address 1 [23:16] write 04 06 -> ram_address 1 [15 :8] write 05 18 -> ram_address 1 [7 :0] write 06 60 -> ram_address 2 [23:16] write 07 c6 -> ram_address 2 [15 :8] write 08 0c -> ram_address 2 [7 :0] write 09 61 -> ram_address 3 [23:16] write 0a 87 -> ram_address 3 [15 :8] write 0b f0 -> ram_address 3 [7 :0] write 0c 61 -> ram_address 4 [23:16] write 0d c6 -> ram_address 4 [15 :8] write 0e 06 -> ram_address 4 [7 :0] write 0f 60 -> ram_address 5 [23:16] write 10 66 -> ram_address 5 [15 :8] write 11 06 -> ram_address 5 [7 :0] write 12 61 -> ram_address 6 [23:16] write 13 c7 -> ram_address 6 [15 :8] write 14 f0 -> ram_address 6 [7 :0] write 15 00 -> ram_address 7 [23:16] write 16 00 -> ram_address 7 [15 :8] write 17 00 -> ram_address 7 [7 :0] write 18 00 -> ram_address 8 [23:16] write 19 00 -> ram_address 8 [15 :8] write 1a 00 -> ram_address 8 [7 :0] 12 bit wide 18 bit wide
register description by block ade3800 84/138 character data ram packing is done as follows: 1bpp non rotated 23 16 15 8 7 0 line 0 line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 line 11 line 12 line 13 line 14 line 15 line 16 line 17 2bpp non rotated 23 16 15 8 7 0 line 0 line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 line 11 line 12 line 13 line 14 line 15 line 16 line 17 1bpp rotated 23 16 15 8 7 0 line 0 line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 line 11 2bpp rotated 23 16 15 8 7 0 line 0 line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 line 11
85/138 ade3800 register description by block 3bpp non rotated 23 16 15 8 7 0 line 0 line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 line 11 line 12 line 13 line 14 line 15 line 16 line 17 3bpp rotated 23 16 15 8 7 0 line 0 line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 line 11 bits [2:0] are not used
register description by block ade3800 86/138
87/138 ade3800 register description by block 4bpp non rotated 23 16 15 8 7 0 line 0 line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 line 11 line 12 line 13 line 14 line 15 line 16 line 17 4bpp rotated 23 16 15 8 7 0 line 0 line 1 line 2 line 3 line 4 line 5 line 6 line 7 line 8 line 9 line 10 line 11
register description by block ade3800 88/138 4.15 flicker (flk) the flicker block computes a nonlinear correlation of lcd polarity inversion patterns and the lcd output data stream and provides the correlation results as scores to the microcontroller via i2c. the mcu polls this block regularly. in response to a high score, the mcu can adjust the polarity signal generated in the tcon to cancel the visual flicker that arises from correlated pixel and polarity patterns. figure 16 shows a block diagram of the flicker module and its connectivity with the neighboring modules. 4.15.1 function a walsh 8x8 function is used to compare the detected pattern, where each one of the 8 functions represents a pattern. all patterns are considered to be vertically, where horizontally the pixels are assumed to be alternating its rgb components. only 4 of the patterns can be measured at one time, and they are selected by means of wf_shift[2:0] by programming the number of patterns shifted i.e. if wf_shift = 00 then the 4 results are meas0, meas1, meas2, meas3; if wf_shift = 01 then the 4 results are meas1, meas2, meas3, meas4; if wf_shift = 05 then the 4 results are meas5, meas6, meas7, meas0; and so on. the score that is registered at the end of a measurement is the delta intensity between the rgb components on pixels that are alternating horizontally and match one or more of the defined 8 patterns. since the flickering effect occurs most of the time around the 50% of the color intensity, two functions are used to get the delta difference between the rgb components, one is normalized at 50%, and the other is normalized at 100%. the selection between the two can be programmed by the flicker_ctrl0[5] => 0/1 (100/50%) normalization. the horizontal setting of the rgb component of each pixel is represented by the flicker_ctrl0[2:0], and for any pattern, maximum scores are calculated by having the correct figure 16: block diagram 10 bit apc tcon flicker detector tft panel osd gamma output formatter emi
89/138 ade3800 register description by block distribution of the color components. by default, we assume the most frequent setting is +-+ or -+-, which means flicker_ctrl0[2:0] are programmed to either 101 or 010. a calculation is done after the number of frames programmed in frame_cnt_max have passed. with each frame the calculation is performed only on a horizontal portion of the image on all lines. the size of that horizontal portion (in pixels) is determined by the value programmed in the hblock_size included in the following formula: 2 ^ (3 + hblock_size) for calculation of flicker patterns on the whole image, the result of this formula multiplied by frame_cnt_max should be equal to the line length (i n pixels), although that is not a constraint. by splitting the image calculation to smaller horizontal portions, the local scores are banked (saved) at the end of each portion, hence enabling a reverse pattern within a line to be detected. the smaller that horizontal portion is, the better chance of detecting pattern reversals within a line. taking that into account, the smaller the horizontal portion is, the more frames needed to finish the full image pattern scan. the minimum horizontal portion can be 8 pixels, and the maximum can be the size of the line. vertically, the flicker block is defined to have a resolution of 8 lines, so no programming is needed to define the vertical portion, it banks automatically every 8 lines, and it goes through all lines every frame. the free_run/freeze_scores bit flicker_ctrl0[4] enables the final calculation to be fed to the i2c registers. this bit does not regulate all the internal flicker calculation, but only the update of the i2c registers. the output results are stored in four 32 bit registers with addresses described in the table. the higher the score is, the more that pattern is present in the image (each 32 bit register represents 1 pattern). whichever pattern is detected most, the tc on is advised to cancel the flicker by switching the pixel polarity which is the opposite of the pattern detected. the following figure shows all patterns that can be detected by this flicker block. figure 17: 8x8 walsh basis function set + + + + + + + + + - + - + - + - + + - - + + - - + - - + + - - + + + + + - - - - + - + - - + - + + + - - - - + + + - - + - + + -
register description by block ade3800 90/138 figure 18 shows an overview of the scanning of the rgb and updating of the registers diagram: figure 18: scanning overview
91/138 ade3800 register description by block the number of frames used to complete one full measurement and update the i2c registers is programmed into frame_cnt_max as shown below. table 31: flk registers (sheet 1 of 2) register name addr mode bits rst description flicker_ctrl0 0ca1 r/w [5] 25 0: straight line uniform function 1*: straight line hill function (normal) r/w [4] 0*: free run 1: freeze scores set to a 1 when the micro controller is reading multibyte scores to prevent update corruption. r/w [2:0] -horizontal polarity pattern (even/odd pixels) 000: -r-g-b / +r+g+b 001: -r-g+b / +r+g-b 010: -r+g-b / +r-g+b 011: -r+g+b / +r-g-b 100: +r-g-b / -r+g+b 101*: +r-g+b / -r+g-b 110: +r+g-b / -r-g+b 111: +r+g+b / -r-g-b -if input data is in rgb format program flicker_ctrl0 to 5 or 2 to get maximum score
register description by block ade3800 92/138 4.16 adaptive phase control (apc) the apc block generates a 2-bit dither pattern for an 8-bit panel or a 4-bit dither pattern for a 6-bit panel to visually improve the amplitude resolution of the 10-bit rgb output signal. 4.16.1 function the heart of the apc block consists of a 32x32x4 bit lookup table (lut). it represents one threshold matrix, which can be read using a programmable addressing technique as well as a programmable dither threshold control. the panel depth apc_ctrl0[1] should match the bit depth of the panel and is not masked by apc enable apc_ctrl0[0]. when apc_ctrl0[0] is cleared, the dither pattern is set to zero. 4.16.2 addressing technique the apc block offers an i 2 c programmable addressing technique to generate various temporal dither patterns. the frame offset apc_ctrl1[7:4] is a 4-bit increment value, which defines the horizontal/vertical displacement of the dither matr ix from frame to frame. after the frame length apc_ctrl1[3:0] + 1 number of frames, both horizontal and vertical displacement positions will be reset to zero, only when the frame length apc_ctrl1[3:0] > 0 . note: to set the frame accumulator to zero, the frame offset apc_ctrl1[7:4] must be programmed to 0, and the frame length apc_ctrl1[3:0] to 1 . the frame offset can be independently activated in the horizontal and vertical dimension using respectively apc_ctrl0[5] and apc_ctrl0[6]. in addition, apc_ctrl0[7] enables a horizontal displacement increment of the frame offset apc_ctrl1[7:4] per color component. 4.16.3 dither threshold control when the panel depth apc_ctrl0[1] is set to 0, the 4-bit lut output value maps to a 2-bit value for 8-bit panels. hblock_size 0ca2 r/w [3:0] 00 size in bits of horizontal window = 2 ^ (3+ hblock_size) frame_cnt_max 0ca3 r/w [7:0] 08 -number of frames to complete one measurement -total number of pixs in a line would be: frame_cnt_max * (2 ^ (3+ hblock_size) ) -example: hblock_size = 0; frame_cnt_max = 8; means that it will take 8 frames to finish the calculation. for each frame only one portion of the image is being calculated on. the size of that portion is 2 ^ (3 + hblock_size), in this case 8 pixels. this means that the calculated line length = 8 pix window * 8 frames = 64 pixels wf_shift 0ca4 r/w [2:0] 00 selector of which 4 of the walsh function is measuring flicker_meas0 0cb1 ? b4 r/w [31:0] 00 score reg showing pattern matching pattern 0 flicker_meas1 0cb5 ? b8 r/w [31:0] 00 score reg showing pattern matching pattern 1 flicker_meas2 0cb9 ? bc r/w [31:0] 00 score reg showing pattern matching pattern 2 flicker_meas3 0cbd ? c0 r/w [31:0] 00 score reg showing pattern matching pattern 3 table 31: flk registers (sheet 2 of 2)
93/138 ade3800 register description by block apc_ctrl0[4] enables symmetric clipping of white levels respectively black levels for 6-bit panels as well as 8-bit panels. rgb offset apc_ctrl0[3 ] enables a different dither amplitude offset for each color component. when the frame inversion apc_ctrl0[2] is set to 1 , the dither amplitude is inverted every other frame. a matlab file is provided to generate a variety of different threshold matrices. table 32: apc registers register name addr mode bits rst description apc_ctrl0 0c20 r/w [7] 00 horizontal displacement increment of (frame offset) per color component 0*: disabled 1: enabled [6] vertical start position of di ther matrix changes by frame offset 0*: disabled 1: enabled [5] horizontal start position of dither matrix changes by frame offset 0*: disabled 1: enabled [4] symmetric clipping for white level and black level 0*: disabled 1: enabled (normal) [3] dither amplitude offset per color component 0*: disabled 1: enabled [2] invert dither amplitude every other frame 0*: disabled 1: enabled [1] panel depth 0*: for true 8 bit panels 1: for 6 bit panels/8bit panels with internal dithering [0] dither amplitude 0*: amplitude set to 0 1: enabled (normal) apc_ctrl1 0c21 r/w [7:4] 00 frame offset this value offsets the start posit ion of the dither matrix from frame to frame [3:0] frame length the dither matrix start position is reset after (frame length +1) number of frames, only if > 0
register description by block ade3800 94/138 4.17 output mux (omux) the omux block formats the 1 ppc 24bpp data stream from the data path into a single or 2 ppc pixel stream for the flat panel using rsds or lvds signaling at the pins. table 33: omux registers (sheet 1 of 3) register name addr mode bits rst description omux_ctrl0 0c30 r/w [7:4] 00 rgb data channel reordering: 0: no changes on rgb data 2: right shift 2 bits a: right rotate 2 bits c: right rotate 4 bits e: right rotate 6 bits all other values: reserved r/w [3] 1: flip msb to lsb per color (8 bits) r/w [2] 1: swap r and b data r/w [1] 0*: - in 1ppc, a channel active - in 2ppc, left on a, right on b 1: - in 1ppc, b channel active - in 2ppc, left on b, right on a r/w [0] 0*: 1 ppc 1: 2 ppc forced to 1 ppc in lvds debug or rsds mode (refer to omux_test register) omux_ctrl1 0c31 r/w [7] 00 lvds reserved bit 0*: previous bit 1: tcon[7] r/w [6] 1: lvds channel 0 to channel 3 flip and channel 4 to channel 7 flip r/w [0] 1: lvds outputs active (see ta bl e 3 4 ) omux_ctrl2 0c32 r/w [7] 00 1: invert lvds channel 7 r/w [6] 1: invert lvds channel 6 r/w [5] 1: invert lvds channel 5 r/w [4] 1: invert lvds channel 4 r/w [3] 1: invert lvds channel 3 r/w [2] 1: invert lvds channel 2 r/w [1] 1: invert lvds channel 1 r/w [0] 1: invert lvdschannel 0
95/138 ade3800 register description by block omux_ctrl3 0c33 r/w [7] 00 0*: select rsds even bits first (normal) 1: select rsds odd bits first r/w [4] 1: rsds split buffer enable r/w [1] 0*: 128 pin mapping 1: 100 pin mapping r/w [0] 1: rsds outputs active (see ta b l e 3 4 ) omux_ctrl4 0c34 r/w [7] 00 1: invert rsds data pair 4 r/w [6] 1: invert rsds data pair 5 lv d s debug pattern r/w [5] 1: invert rsds data pair 6 r/w [4] 1: invert rsds data pair 7 r/w [3] 1: invert rsds data pair 16 r/w [2] 1: invert rsds data pair 17 r/w [1] 1: invert rsds data pair 18 rsds debug pattern r/w [0] 1: invert rsds data pair 20 omux_ctrl5 0c35 r/w [7] 00 1: invert rsds data pair 11 r/w [6] 1: invert rsds data pair 10 r/w [5] 1: invert rsds data pair 9 r/w [4] 1: invert rsds data pair 8 r/w [3] 1: invert rsds data pair 0 r/w [2] 1: invert rsds data pair 1 r/w [1] 1: invert rsds data pair 2 r/w [0] 1: invert rsds data pair 3 omux_ctrl6 0c36 r/w [7] 00 1: invert rsds data pair 19 r/w [6] 1: invert rsds data pair 22 r/w [5] 1: invert rsds data pair 23 r/w [4] 1: invert rsds data pair 25 r/w [3] 1: invert rsds data pair 24 r/w [2] 1: invert rsds data pair 15 r/w [1] 1: invert rsds data pair 14 r/w [0] 1: invert rsds data pair 13 table 33: omux registers (sheet 2 of 3) register name addr mode bits rst description
register description by block ade3800 96/138 the omux architecture consists of 2 main blocks as shown in figure 19 . omux_ctrl7 0c37 r/w [7] 00 1: invert rsds clock 1 (rsds data pair 12) r/w [6] 0*: normal lvds pll clock if lvds mode (normal) 1: invert lvds pll clock if lvds mode, or invert rsds clock 0 (rsds data pair 21) if rsds mode r/w [4] 1: invert lvds output de r/w [1] [0] tcon remapped to pwm tcon[1] = pwm_a enable tcon[0] = pwm_b enable omux_half_line_l omux_half_line_u 0c38 0c39 r/w r/w [7:0] [3:0] 00 00 rsds split buffer half line address = out_hpixel/2. out_hpixel has to be multiples of 4. e.g. for sxga panel (1280) the value is 640 omux_test 0c3a r/w [1] 00 1: enable rsds debug mode r/w [0] 1: enable lvds debug mode table 34: omux_ctrl output modes output mode omux_ctrl1 [0] omux_ctrl3 [0] idle 0 0 lvds mode 1 0 rvds mode 0 1 figure 19: omux architecture table 33: omux registers (sheet 3 of 3) register name addr mode bits rst description
97/138 ade3800 register description by block the split line buffer can delay and re-interleave the input pixel stream so that a 2 ppc output can drive both the first and the half line pixels simultaneously. this is commonly used for tcon applications where the column drivers are split into two groups (left and right halves of the screen) and driven at ? the pixel rate. control signals need to be similarly delayed in the tcon to account for the ? line temporal shift. latency is not important as long as the timing relationship between hsync, vsync, enable and data is preserved at the output. figure 20: mux block diagram 8 right shift 8 byte flip red & blue swap 8 8 right shift 8 byte flip 8 8 right shift 8 byte flip 8 rin[7:0] gin[7:0] bin[7:0] 24 single to double wide converter & rsds data pair iinversion 48 hclk enab_in hsync_in vsync_in tcon_in[7:0] lvds data swap & inversion rsds data pair function 24 flops 14 8 tcon_out [7:0] 56 6 lvds_out [55:0] 24 tci[13:0] f l o p s lvds_clk_out rsds_clka_out rsds_clkb_out pwm_a_in pwm_b_in 2 dotclk dotclkx2 (otclk) 56 rsds_out [23:0]
register description by block ade3800 98/138 4.17.1 output data lv d s 56 bits of lvds data are arranged as shown in ta b l e 3 5 : msb-lsb flip if omux_ctrl1[6] is equal to 1, data are flipped as follows: lvds_data_out[27:0] = {lvds_data_o[6:0],lvds_data_o[13:7],lvds_data_o[20:14],lvds_data_o[27:21]} lvds_data_out[55:28] = {lvds_data_o[34:28],lvds_data_o[41:35],lvds_data_o[48:42],lvds_data_o[55:49]} rsds 128 pin and 100 pin in rsds mode, 24/48 data bits are combined into 12/24 pairs for 1 ppc and 2 ppc modes, respectively. the split line buffer is to be run in 2 ppc rsds mode 128 pin only. table 35: lvds output data lv d s output lvds data [6] [5] [4] [3] [2] [1] [0] out0 lvds_data_o[6:0] ar0 ar1 ar2 ar3 ar4 ar5 ag0 out1 lvds_data_o[13:7] ag1 ag2 ag3 ag4 ag5 ab0 ab1 out2 lvds_data_o[20:14] ab2 ab3 ab4 ab5 hs vs de out3 lvds_data_o[27:21] ar6 ar7 ag6 ag7 ab6 ab7 areserved out4 lvds_data_o[34:28] br0 br1 br2 br3 br4 br5 bg0 out5 lvds_data_o[41:35] bag1 bg2 bg3 bg4 bg5 bb0 bb1 out6 lvds_data_o[48:42] bb2 bb3 bb4 bb5 hs vs de out7 lvds_data_o[55:49] br6 br7 bg6 bg7 bb6 bb7 breserved
99/138 ade3800 register description by block output interface pin # (lqfp 128) pin # (lqfp 100) (rsds input name) pin name output mode lvd s rsds (lqfp-128) rsds (lqfp-100) 26 ( rsdsin0 ) rsds0+ 0 not active rsds_b_3 back-side blue 25 rsds0- 0 rsds_b_3b 24 ( rsdsin1 ) rsds1+ 0 rsds_b_2 23 rsds1- 0 rsds_b_2b 22 ( rsdsin2 ) rsds2+ 0 rsds_b_1 21 rsds2- 0 rsds_b_1b 20 17 ( rsdsin3 ) rsds3+ 0 rsds_b_0 rsds_b_3 back-side blue 19 16 rsds3- 0 rsds_b_0b rsds_b_3b 15 ( rsdsin4 ) rsds4+ 0 rsds_g_3 back-side green 14 rsds4- 0 rsds_g_3b 13 12 ( rsdsin5 ) rsds5+ 0 rsds_g_2 rsds_b_2 back-side blue 12 11 rsds5- 0 rsds_g_2b rsds_b_2b 11 ( rsdsin6 ) rsds6+ 0 rsds_g_1 10 rsds6- 0 rsds_g_1b 9 10 ( rsdsin7 ) rsds7+ 0 rsds_g_0 rsds_b_1 back-side blue 8 9 rsds7- 0 rsds_g_0b rsds_b_1b 82 ( rsdsin8 ) rsds8+ 0 rsds_r_4 front-side red 81 rsds8- 0 rsds_r_4b 84 ( rsdsin9 ) rsds9+ 0 rsds_r_5 83 rsds9- 0 rsds_r_5b 86 ( rsdsin10 ) rsds10+ 0 rsds_r_6 85 rsds10- 0 rsds_r_6b 88 ( rsdsin11 ) rsds11+ 0 rsds_r_7 87 rsds11- 0 rsds_r_7b
register description by block ade3800 100/138 93 ( rsdsin12 ) rsds12+ 0 not active rsds_clk1 front-side clock 92 rsds12- 0 rsds_clk1_b 98 ( rsdsin13 ) rsds13+ 0 rsds_g_4 front-side green 97 rsds13- 0 rsds_g_4b 100 ( rsdsin14 ) rsds14+ 0 rsds_g_5 99 rsds14- 0 rsds_g_5b 102 ( rsdsin15 ) rsds15+ 0 rsds_g_6 101 rsds15- 0 rsds_g_6b 126 99 out0- lvds_0b lv d s a channel (can be swapped with b channel) rsds_r_3 back-side clock rsds_b_0 back-side blue 125 98 ( rsdsin16 ) out0+ lvds_0 rsds_r_3b rsds_b_0b 124 97 out1- lvds_1b rsds_r_2 back-side red rsds_g_3 back-side green 123 96 ( rsdsin17 ) out1+ lvds_1 rsds_r_2b rsds_g_3b 122 95 out2- lvds_2b rsds_r_1 rsds_g_2 121 94 ( rsdsin18 ) out2+ lvds_2 rsds_r_1b rsds_g_2b 120 93 outclk0- lvds_clk_0b rsds_r_0 rsds_g_1 119 92 ( rsdsin20 ) outclk0+ lvds_clk_0 rsds_r_0b rsds_g_1b 118 91 out3- lvds_3b rsds_b_7 rsds_g_0 117 90 ( rsdsin19 ) out3+ lvds_3 rsds_b_7b rsds_g_0b 113 86 out4- lvds_4b lv d s b channel (can be swapped with a channel) rsds_clk0 front-side blue rsds_clk0 back-side clock 112 85 ( rsdsin21 ) out4+ lvds_4 rsds_clk0_b rsds_clk0_b 111 84 out5- lvds_5b rsds_b_6 rsds_r_3 back-side red 110 83 ( rsdsin22 ) out5+ lvds_5 rsds_b_6b rsds_r_3b 109 82 out6- lvds_6b rsds_b_5 rsds_r_2 108 81 ( rsdsin23 ) out6+ lvds_6 rsds_b_5b rsds_r_2b 107 80 outclk1- lvds_clk_1b rsds_b_4 rsds_r_1 106 79 ( rsdsin25 ) outclk1+ lvds_clk_1 rsds_b_4b rsds_r_1b 105 78 out7- lvds_7_b rsds_g_7 front-side green rsds_r_0 104 77 ( rsdsin24 ) out7+ lvds_7 rsds_g_7b rsds_r_0b output interface pin # (lqfp 128) pin # (lqfp 100) (rsds input name) pin name output mode lvd s rsds (lqfp-128) rsds (lqfp-100)
101/138 ade3800 register description by block debug mode if lvds debug mode is enabled (omux_test[0] = 1), lv ds output data will be set to a static 7-bit pattern which is programmed in omux_ctrl4[6:0] if rsds debug mode is enabled (omux_test[1] = 1), rsds output data will be set to a static pattern which is programmed in omux_ctrl4[1:0]. 4.17.2 output clocks output clock (to lvds pll) for both functional and test modes is the divide-by-2 clock generated inside omux. this clock is flopped on the falling edge of fsyn_outclk providing a ? phase offset between clock and data. rsds output clocks 0 & 1 are set to fsyn_outclk_div2_dly for both functional and test modes. this clock has a programmable delay offset from the fsyn _outclk_div2. this is to ensure that data will meet the setup/hold requirements at the destination (panel.) the out_enab signal (from the tcon block) must be programmed so that its left (rising) edge is odd in 2 ppc rsds mode. 4.17.3 clock sources and timing considerations the omux block operates on dotclk with the ex ception of omux_mux which runs on fsyn_outclk. table 2.4 describes the relationship between fsyn_outclk, fsyn_outclk_div2 and dotclk. 70 58 tcon0 pwm_en ? pwm_b: tcon0 tcon signals pwm_en ? pwm_b: tcon0 tcon signals pwm_en ? pwm_b: tcon0 tcon signals 71 59 tcon1 pwm_en ? pwm_a: tcon1 pwm_en ? pwm_a: tcon1 pwm_en ? pwm_a: tcon1 72 60 tcon2 tcon2 tcon2 tcon2 73 61 tcon3 tcon3 tcon3 tcon3 74 62 tcon4 tcon4 tcon4 tcon4 75 63 tcon5 tcon5 tcon5 tcon5 76 64 tcon6 tcon6 tcon6 tcon6 77 65 tcon7 tcon7 tcon7 tcon7 table 36: clock relationship 1 ppc 2 ppc fsyn_outclk_freq 2x dotclk_freq dotclk_freq dotclk source sel fsyn_outclk_div2 half speed fsyn_outclk full speed glbl_clk_src_sel_0[6:4] 2 3 glbl_clk_src_sel_1[6:4] 3 3 fsyn_pr_otclk 2^22 * xclk_freq / dotclk_freq 2^21 * xclk_freq / dotclk_freq output interface pin # (lqfp 128) pin # (lqfp 100) (rsds input name) pin name output mode lvd s rsds (lqfp-128) rsds (lqfp-100)
register description by block ade3800 102/138 4.18 timing controller (tcon) the timing controller block provides all output timing signals for panel applications. features include: comparator, pulse and window functions lc polarity inversion function generator separate logic and output crossbars out_hsync, out_vsync and out_enab generation register shadowing figure 21: output timing (hcount,vcount) destination image controlled by scaler phase generator origin_h/vpos and h/v scale_factor (out_henab_set,out_venab_set) (0,0) background color out_htotal out_vtotal_min out_vtotal_max variable length last line scaled image blanking free run sequencer armed for reset (out_henab_reset,out_venab_reset) min 28 min 28 scaled image min 32 min 32 variable length last line terminated by smux vtrig delayed by scl_trigger_dly
103/138 ade3800 register description by block figure 22: tcon schematic 4 comparators 6 pulses 4 windows 14 32 a ,b,0,0 a ,0,b,0 0,a,b,0 0,0,a&b,0 0,0,0,a&b 0,0,0,a|b 0,0,0,a^b 0,0,0,!(a&b) s r t d 8 x 16 12 12 hcount vcount 12 a b 16 srtd crossbar mux 32x32 {1,0, polarity, vtoggle[2:0]} a ,b,0,0 a ,0,b,0 0,a,b,0 0,0,a&b,0 0,0,0,a&b 0,0,0,a|b 0,0,0,a^b 0,0,0,!(a&b) s r t d a b output crossbar mux 24x16 16
register description by block ade3800 104/138 the toggle generator facilitates the synthesis of polarity signals from internal tcon signals; the horizontal tcon_comp and vertical tcon_pulse signals. the selected inputs supply clock and enable signals (resp.) for a 2-bit incrementing counter and a toggle flop that output 3 toggle and 1 polarity signals. the vlen variable sets the counter maximum, which controls the vertical sequence. input and vlen selection are all in the tcon_polarity_ctrl register. common types of polarity signals are given below. for synchronization of polarity and vtog_count, a special sync mode should be entered for one frame to initialize the polarity pattern relative to the first line of vmask. figure 23: toggle generator counter, decoder frame number vlen vtoggle 0 1 2 3 4 5 6 7 8 9 10 11 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 2 0 0 0 0 0 0 0 0 0 0 0 0 2 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 1 0 0 1 0 0 1 0 0 1 0 2 0 0 1 0 0 1 0 0 1 0 0 1 h v tcon_polarity_ctrl [2:0] vtog_count (2 bit) toggle flop vtoggle 0 vtoggle 1 vtoggle 2 polarity tcon_polarity_ctrl [5:4] tcon_polarity_ctrl [7:6] tcon_pulse_0 through tcon_pulse_5 tcon_comp_0 through tcon_comp_3 vmask href vtoggle 0 vlen, counter max decoder en en
105/138 ade3800 register description by block (*): block having a window control feature table 37: polarity programming examples. polarity type vmask pulse length vlen pol toggle every line, invert frame to frame, steady during vblank (2 frame sequence) odd, usually vpixel+1 or vpixel-1 0 polarity toggle every other line, invert frame to frame, steady during vblank (2 frame sequence) odd*2, usually vpixel+2 or vpixel -2 1 polarity toggle every 3 rd line, invert frame to frame, steady during vblank (2 frame sequence) odd*3 2 polarity toggle every other line, walking pattern (4 frame sequence) odd, usually vpixel+1 or vpixel-1 1 table 38: video pipeline latency information block output pixel video pipeline latency (in per block dotclk units) pgen (*) +3 (+16 vs tcon window h values) srgb (*) +6 (+13 vs tcon window h values) gamma +3 osd (*) +3 (+4 vs tcon window h values) apc +1 tcon zero reference lvds (pixel delay up to lvds tx) 1ppc: 5 pixels, 2ppc 6 pixels rsds (delay up to the rsds pads) 1ppc: 5 pixels, 2ppc w/ split line buffer=640: 640+12 pixels
register description by block ade3800 106/138 table 39: register map (sheet 1 of 7) register name addr. bits mode rst description tcon_ctrl 0b00 [6:4] r/w 00 out_venab source selection 0*: out_venab generated from out_enab (normal) 1: tcon_pgen 2: window venab[0] 3: window venab[1] 4: window venab[2] 5: window venab[3] 6-7: reserved [3:2] r/w i2c block transfer (not tcon) event selection 0*: (hcount == 0) && (vcount == 0) 1: (hcount == 0) 2: srtd0 3: srtd1 [0] r/w tcon[7:0] output enable . internal signals are always active. tcon_polarity_ctrl 0b01 [7:6] r/w 00 vlen = toggle/polarity line sequence length (desired ? 1) [5:4] r/w vtoggle / polarity horizontal reference (1 of 4 comparators) [2:0] r/w polarity vmask selection 0*: pulse 0 1: pulse 1 2: pulse 2 3: pulse 3 4: pulse 4 5: pulse 5 6: pulse 0, reset vtog_count to 0 at rising edge of vmask, pol arity reset to 0 7: pulse 0, resync vtog_count to 1 at ris- ing edge of vmask, polarity reset to 0 note: pulse type must be vertical tcon_inv_0 0b02 [7] r/w 00 invert output tcon7 [6] r/w invert output tcon6 [5] r/w invert output tcon5 [4] r/w invert output tcon4 [3] r/w invert output tcon3 [2] r/w invert output tcon2 [1] r/w invert output tcon1 [0] r/w invert output tcon0
107/138 ade3800 register description by block tcon_inv_1 0b03 [7] r/w 00 invert output osd_lut [6] r/w invert output pgen [5] r/w invert output gamma_2 [4] r/w invert output gamma_1 [3] r/w invert output srgb [2] r/w invert output out_enab [1] r/w invert output out_vsync [0] r/w invert output out_hsync tcon_shadow_ctrl 0b04 [7:4] 00 shadow target 00*: comp 0 01: comp 1 02: comp 2 03: comp 3 04: pulse 0 05: pulse 1 06: pulse 2 07: pulse 3 08: pulse 4 09: pulse 5 0a: window 0 0b: window 1 0c: window 2 0d: window 3 0e: polarity 0f: reserved [3:2] r/w tcon shadow event selection 0*: (hcount == 0) && (vcount == 0) 1: (hcount == 0) 2: srtd0 3: srtd1 [1] r/w shadow transfer enable - set to transfer at next event - bit is automatically cleared when trans- fer is complete [0] r/w shadow enable tcon_shadow_buf_0 0b05 [7:0] r/w 00 shadow buffer 0 tcon_shadow_buf_1 0b06 [4:0] r/w 00 shadow buffer 1 tcon_shadow_buf_2 0b07 [7:0] r/w 00 shadow buffer 2 tcon_shadow_buf_3 0b08 [7:0] r/w 00 shadow buffer 3 table 39: register map (sheet 2 of 7) register name addr. bits mode rst description
register description by block ade3800 108/138 tcon_shadow_buf_4 0b09 [7:0] r/w 00 shadow buffer 4 tcon_shadow_buf_5 0b0a [3:0] r/w 00 shadow buffer 5 tcon_shadow_buf_6 0b0b [7:0] r/w 00 shadow buffer 6 tcon_shadow_buf_7 0b0c [4:0] r/w 00 shadow buffer 7 tcon_comp_0_l tcon_comp_0_u 0b10 0b11 [7:0] [4] [3:0] r/w r/w r/w 00 00 count comparison value 0*: horizontal count compare 1: vertical count compare count comparison value tcon_comp_1_l tcon_comp_1_u 0b12 0b13 refer to tcon_comp_0 tcon_comp_2_l tcon_comp_2_u 0b14 0b15 refer to tcon_comp_0 tcon_comp_3_l tcon_comp_3_u 0b16 0b17 refer to tcon_comp_0 tcon_pulse_0_set_l tcon_pulse_0_set_u 0b18 0b19 [7:0] [3:0] r/w r/w 00 00 set point compare value set point compare value tcon_pulse_0_rst_l tcon_pulse_0_rst_u 0b1a 0b1b [7:0] [7:6] [5:4] [3:0] r/w r/w r/w r/w 00 00 reset point compare value for vertical pulses, 1 of 4 comparators is selected to define the horizontal change point 0*: horizontal pulse 1: vertical pulse 2,3: single point , set=h, rst=v reset point compare value tcon_pulse_1_set_l tcon_pulse_1_set_u 0b1c 0b1d refer to tcon_pulse_0 tcon_pulse_1_rst_l tcon_pulse_1_rst_u 0b1e 0b1f tcon_pulse_2_set_l tcon_pulse_2_set_u 0b20 0b21 refer to tcon_pulse_0 tcon_pulse_2_rst_l tcon_pulse_2_rst_u 0b22 0b23 tcon_pulse_3_set_l tcon_pulse_3_set_u 0b24 0b25 refer to tcon_pulse_0 tcon_pulse_3_rst_l tcon_pulse_3_rst_u 0b26 0b27 table 39: register map (sheet 3 of 7) register name addr. bits mode rst description
109/138 ade3800 register description by block tcon_pulse_4_set_l tcon_pulse_4_set_u 0b28 0b29 refer to tcon_pulse_0 tcon_pulse_4_rst_l tcon_pulse_4_rst_u 0b2a 0b2b tcon_pulse_5_set_l tcon_pulse_5_set_u 0b2c 0b2d refer to tcon_pulse_0 tcon_pulse_5_rst_l tcon_pulse_5_rst_u 0b2e 0b2f tcon_window_0_left_l tcon_window_0_left_u 0b30 0b31 [7:0] [3:0] r/w r/w 00 00 left edge compare count left edge compare count tcon_windo w_0_right_l tcon_windo w_0_right_u 0b32 0b33 [7:0] [3:0] r/w r/w 00 00 right edge compare count right edge compare count tcon_window_0_top_l tcon_window_0_top_u 0b34 0b35 [7:0] [3:0] r/w r/w 00 00 top edge compare count top edge compare count tcon_window_0_bottom_l tcon_window_0_bottom_u 0b36 0b37 [7:0] [4] [3:0] r/w r/w r/w 00 00 bottom edge compare count 0*: window 1: pulse start at (left, top), end at (right, bottom) bottom edge compare count tcon_window_1_left_l tcon_window_1_left_u 0b38 0b39 refer to tcon_window_0 tcon_windo w_1_right_l tcon_windo w_1_right_u 0b3a 0b3b tcon_window_1_top_l tcon_window_1_top_u 0b3c 0b3d tcon_window_1_bottom_l tcon_window_1_bottom_u 0b3e 0b3f tcon_window_2_left_l tcon_window_2_left_u 0b40 0b41 refer to tcon_window_0 tcon_windo w_2_right_l tcon_windo w_2_right_u 0b42 0b43 tcon_window_2_top_l tcon_window_2_top_u 0b44 0b45 tcon_window_2_bottom_l tcon_window_2_bottom_u 0b46 0b47 table 39: register map (sheet 4 of 7) register name addr. bits mode rst description
register description by block ade3800 110/138 tcon_window_3_left_l tcon_window_3_left_u 0b48 0b49 refer to tcon_window_0 tcon_windo w_3_right_l tcon_windo w_3_right_u 0b4a 0b4b tcon_window_3_top_l tcon_window_3_top_u 0b4c 0b4d tcon_window_3_bottom_l tcon_window_3_bottom_u 0b4e 0b4f tcon_srtd_0 0b50 [2:0] r/w 00 srtd logical function 0*: f(a,b,0,0) 1: f(a,0,b,0) 2: f(0,a,b,0) 3: f(0,0,a&b,0) 4: f(0,0,0,a&b) 5: f(0,0,0,a|b) 6: f(0,0,0,a^b) 7: f(0,0,0,!(a&b)) tcon_srtd_1 0b51 tcon_srtd_2 0b52 tcon_srtd_3 0b53 tcon_srtd_4 0b54 tcon_srtd_5 0b55 tcon_srtd_6 0b56 tcon_srtd_7 0b57 tcon_srtd_8 0b58 tcon_srtd_9 0b59 tcon_srtd_10 0b5a tcon_srtd_11 0b5b tcon_srtd_12 0b5c tcon_srtd_13 0b5d tcon_srtd_14 0b5e tcon_srtd_15 0b5f table 39: register map (sheet 5 of 7) register name addr. bits mode rst description
111/138 ade3800 register description by block tcon_x_srtd_0_a 0b80 [4:0] r/w 00 srtd input a selection 00*: 0 01: 1 02: pulse0 03: pulse1 04: pulse2 05: pulse3 06: pulse4 07: pulse5 08: window0 09: window1 0a: window2 0b: window3 0c: vtoggle0 0d: vtoggle1 0e: vtoggle2 0f: polarity 10: srtd0 11: srtd1 12: srtd2 13: srtd3 14: srtd4 15: srtd5 16: srtd6 17: srtd7 18: srtd8 19: srtd9 1a: srtd10 1b: srtd11 1c: comp0 1d: comp1 1e: comp2 1f: comp3 tcon_x_srtd_0_b 0b81 tcon_x_srtd_1_a 0b82 tcon_x_srtd_1_b 0b83 tcon_x_srtd_2_a 0b84 tcon_x_srtd_2_b 0b85 tcon_x_srtd_3_a 0b86 tcon_x_srtd_3_b 0b87 tcon_x_srtd_4_a 0b88 tcon_x_srtd_4_b 0b89 tcon_x_srtd_5_a 0b8a tcon_x_srtd_5_b 0b8b tcon_x_srtd_6_a 0b8c tcon_x_srtd_6_b 0b8d tcon_x_srtd_7_a 0b8e tcon_x_srtd_7_b 0b8f tcon_x_srtd_8_a 0b90 tcon_x_srtd_8_b 0b91 tcon_x_srtd_9_a 0b92 tcon_x_srtd_9_b 0b93 tcon_x_srtd_10_a 0b94 tcon_x_srtd_10_b 0b95 tcon_x_srtd_11_a 0b96 tcon_x_srtd_11_b 0b97 tcon_x_srtd_12_a 0b98 tcon_x_srtd_12_b 0b99 tcon_x_srtd_13_a 0b9a tcon_x_srtd_13_b 0b9b tcon_x_srtd_14_a 0b9c tcon_x_srtd_14_b 0b9d tcon_x_srtd_15_a 0b9e tcon_x_srtd_15_b 0b9f table 39: register map (sheet 6 of 7) register name addr. bits mode rst description
register description by block ade3800 112/138 i2c shadow mode is supported for individual comparators, pulses and windows. new values are loaded into the shadow buffer area by slow i2c then the transfer command and shadow target are written into tcon_shadow_ctrl. at the next event, the data is transferred in a single clock cycle. tcon_x_0 0ba0 [4:0] r/w 00 output selection for tcon pin 0 00*: 0 01: 1 02: pulse0 03: pulse1 04: pulse2 05: pulse3 06: pulse4 07: pulse5 08: window0 09: window1 0a: window2 0b: window3 0c: vtoggle0 0d: vtoggle1 0e: vtoggle2 0f: polarity 10: srtd8 11: srtd9 12: srtd10 13: srtd11 14: srtd12 15: srtd13 16: srtd14 17: srtd15 18 ? 1f: reserved tcon_x_1 0ba1 tcon_x_2 0ba2 tcon_x_3 0ba3 tcon_x_4 0ba4 tcon_x_5 0ba5 tcon_x_6 0ba6 tcon_x_7 0ba7 tcon_x_ohsync 0ba8 tcon_x_ovsync 0ba9 tcon_x_oenab 0baa tcon_x_gamma_a 0bab tcon_x_gamma_b 0bac tcon_x_srgb 0bad tcon_x_pgen 0bae tcon_x_osd_lut 0baf scl_tcon_i2c_spare_reg 0x0a37 [0] r/w 0 [7:1] - reserved [0] - lvds_de_source_select 0: use de generated by tcon_oenab 1: use de generated by tcon_osd_lut (without 16 pixels latency) table 40: shadow mapping source comparator pulse window tcon_shadow_buf_0[7:0] tcon_comp_x[7:0] tcon_pulse_x_set[7:0] tcon_window_x_left[7:0] tcon_shadow_buf_1[4:0] tcon_comp_x[12:8] tcon_pulse_x_set[11:8] tcon_window_x_left[11:8] tcon_shadow_buf_2[7:0] na tcon_pulse_x_rst[7:0] tcon_window_x_right[7:0] tcon_shadow_buf_3[6:0] na tcon_pulse_x_rst[15:8] tcon_window_x_right[11:8] tcon_shadow_buf_4[7:0] na na tcon_window_x_top[7:0] tcon_shadow_buf_5[3:0] na na tcon_window_x_top[11:8] tcon_shadow_buf_6[7:0] na na tcon_window_x_bottom[7:0] tcon_shadow_buf_7[4:0] na na tcon_window_x_bottom[12:8] table 39: register map (sheet 7 of 7) register name addr. bits mode rst description
113/138 ade3800 register description by block tcon example the following is an example of a basic tcon script: writebyte (tcon_ctrl_en, 0x01);// enable tcon output // vsync start at vcount = 0, end at vcount = 1 writeword (tcon_pulse_0_set, 0x0000);// pulse 0 set = 0 (12 bit value) writeword (tcon_pulse_0_rst, 0x1001);// pulse 0 reset = 0x001 (12 bit), // vertical pulse, comparator 0 // hsync start at hcount = 4, end at hcount = 6 writeword (tcon_pulse_1_set, 0x0004);// pulse 1 set = 0x004 (12 bit value) writeword (tcon_pulse_1_rst, 0x0006);// pulse 1 reset = 0x006, horiz pulse // data enable start at upper left (31h,1v), ending at lower right (1311h, 1025v) // for a 1280 x 1024 output enable writeword (tcon_window_0_left, 0x001f);// window 0 left edge comparison // count = 0x01f (12 bit value) writeword (tcon_window_0_right, 0x051f);// right edge count = 0x51f writeword (tcon_window_0_top, 0x0001);// top edge count = 1 writeword (tcon_window_0_bottom, 0x0400);// bottom edge = 0x400, window type // select pulses and window for ohsync, ovsync, oenab writebyte (tcon_x_ohsync, 0x03);// hsync on tcon pin 0 is pulse 1 writebyte (tcon_x_ovsync, 0x02);// vsync on tcon pin 0 is pulse 0 writebyte (tcon_x_oenab, 0x08);// out enable on pin 0 is window 0 4.19 lvds/rsds features the lvds/rsds block supports the following modes: lv d s 1 p p c ? 4 data channels + 1 cloc k channel ? 40mhz - 85mhz lv d s 2 p p c ? 8 data channels + 2 clock channels ? 40mhz - 70mhz rsds 1 ppc ? 12 data channels + 1 clock channel ? 13.5mhz - 85mhz rsds 2 ppc (128 pin package only) ? 24 data channels + 2 clock channels ? 13.5mhz - 70mhz its features are as follows: power down modes
register description by block ade3800 114/138 programmable output swing and common mode voltage per channel programmable delay programmable lvds clock output polarity 4.19.1 output channels 128 pin package 16 channels dedicated rsds; 10 channels shared by lvds or rsds ? lvds (1ppc): 4 data + 1 clock = 5 (others are unused) ? lvds (2ppc): 8 data + 2 clock = 10 ? rsds: 10 data (both 1ppc and 2ppc) 100 pin package 3 channels dedicated to rsds, 10 channels shared by lvds or rsds ? lvds (1ppc): 4 data + 1 clock = 5 (others are unused) ? lvds (2ppc): 8 data + 2 clock = 10 ? rsds: 10 data (1ppc on channel a only) table 41: lvds/rsds registers (sheet 1 of 5) register name address bits mode rst description ana_lvdsana0 0060 [7] r/w 84 pll manual/auto select 0: manual (using ana_lvdsana0[1:0]) 1*: auto [6] r/w pll comparator current select 0*: 300ua (normal) 1: 200ua [5:4] r/w pll charge pump current select 0*: 10ua (normal) 1: 25ua 2: 50ua 3: 100ua (fast response) [1:0] r/w pll manual range select (enabled by ana_lvdsana0[7]) 0*: 25ua (slowest) 1: 75ua 2: 125ua 3: 175ua (fastest)
115/138 ade3800 register description by block ana_lvdsana1 0061 [7:6] r/w 00 bit 3 data interface delay adjustment, see bit 0 [5:4] r/w bit 2 data interface delay adjustment, see bit 0 [3:2] r/w bit 1 data interface delay adjustment, see bit 0 [1:0] r/w bit 0 data interface delay adjustment 0*: 0ps (normal) 1: 90ps 2: 210ps 3: 460ps ana_lvdsana2 0062 [7] c0 pll power control 0: on 1*: off [6] pll global data interface delay 0: no delay 1*: delay (normal) [5:4] r/w bit 6 data interface delay adjustment, see bit 0 [3:2] r/w bit 5 data interface delay adjustment, see bit 0 [1:0] r/w bit 4 data interface delay adjustment, see bit 0 ana_lvdsana4 0064 [6:4] r/w 01 lv d s c l o ck s kew lsb = 135ps (typ) [3] lvds clock skew enable 0*: no delay (normal) 1: delay [2] lvdsclkout1 output polarity 0*: normal 1: invert [1] lvdsclkout0 output polarity 0*: normal 1: invert [0] lvds & rsds master power control (overrides ana_lvdsana5[7], ana_lvdsana6[7], and ana_lvdsana2[7]) table 41: lvds/rsds registers (sheet 2 of 5) register name address bits mode rst description
register description by block ade3800 116/138 ana_lvdsana5 0065 [7] r/w c0 lvds b power control (for lvds channel [7:4], lvds clk 1) 0: on 1*: off [6] lvds a power control (for lvds channel [3:0], lvds clk 0) 0: on 1*: off [5] output mode select 0*: rsds (also powers down pll) 1: lvds [4:0] lvds iref bias current setting 10000: 420ua 00011: 168ua 00010: 178ua 00001: 189ua 00000*: 201ua (normal) 11111: 202ua 11110: 216.3ua 11101: 233ua 11100: 252ua ana_lvdsana7 0067 [7] r 00 lvds channel [7:4] power status [6] lvds channel [3:0] power status [5] lvds/rsds/pll global power status [4] pll powerdown status = [ana_lvdsana4[0] or ana _ lvdsana2[7] or (not ana_lvdsana5[5])] [3] pll up status [2] pll down status [1:0] pll range status table 41: lvds/rsds registers (sheet 3 of 5) register name address bits mode rst description
117/138 ade3800 register description by block ana_lvdssw_vc 0068 [6:4] r/w 00 lvds & rsds output common mode adjustment 0*: 1.093v 1: 1.119v 2: 1.145v 3: 1.171v (normal) 4: 1.197v 5: 1.223v 6: 1.259v 7: 1.274v [3:0] lvds & rsds swing adjustment 0*: 170mv (normal) f: 475mv lsb = 20mv (typ) ana_lvdscompv 0069 [6:4] 00 vrl regulator current adjust 0*: off 1: 18ua (normal) 2: 36ua 3: 54ua 4: 72ua 5: 90ua 6: 108ua 7: 126ua [2:0] vrh regulator current adjust 0*: off 1: 18ua (normal) 2: 36ua 3: 54ua 4: 72ua 5: 90ua 6: 108ua 7: 126ua table 41: lvds/rsds registers (sheet 4 of 5) register name address bits mode rst description
register description by block ade3800 118/138 ana_lvds_dly_0 006a [6:4] r/w 33 lvdsdlych1 lvds/rsds output skew adjust 0: 176ps (typ) 1: 104ps (typ) 2: 73ps (typ) 3*: 50ps (typ) 4: 39ps (typ) 5: 18ps (typ) 6: 7ps (typ) 7: no delay (normal) [2:0] lvdsdlych0 ana_lvds_dly_1 006b [6:4] r/w 33 lvdsdlyclk0 [2:0] lvdsdlych2 ana_lvds_dly_2 006c [6:4] r/w 33 lvdsdlych4 [2:0] lvdsdlych3 ana_lvds_dly_3 006d [6:4] r/w 33 lvdsdlych6 [2:0] lvdsdlych5 ana_lvds_dly_4 006e [6:4] r/w 33 lvdsdlych7 [2:0] lvdsdlyclk1 ana_rsds_dly_0 0070 [6:4] r/w 33 rsdsdlych1 [2:0] rsdsdlych0 ana_rsds_dly_1 0071 [6:4] r/w 33 rsdsdlych3 [2:0] rsdsdlych2 ana_rsds_dly_2 0072 [6:4] r/w 33 rsdsdlych5 [2:0] rsdsdlych4 ana_rsds_dly_3 0073 [6:4] r/w 33 rsdsdlych7 [2:0] rsdsdlych6 ana_rsds_dly_4 0074 [6:4] r/w 33 rsdsdlych9 [2:0] rsdsdlych8 ana_rsds_dly_5 0075 [6:4] r/w 33 rsdsdlych11 [2:0] rsdsdlych10 ana_rsds_dly_6 0076 [6:4] r/w 33 rsdsdlych13 [2:0] rsdsdlych12 ana_rsds_dly_7 0077 [6:4] r/w 33 rsdsdlych15 [2:0] rsdsdlych14 table 42: lvds / rsds power configurations state pll lv d s output rsds output ana_lvdsana4[0] master power ctrl ana_lvdsana5[5] output mode sel ana_lvdsana2[7] pll power ctrl all off off off off 1 x x lv d s o n on on off 0 1 0 rsds on off off on 0 0 x table 41: lvds/rsds registers (sheet 5 of 5) register name address bits mode rst description
119/138 ade3800 register description by block 4.20 pulse width modulation (pwm) the pulse width modulation block generates two signals that can be used to control backlight inverter switching power components directly. it is derived from xclk and can be powered up independently of the dotclk and inclk domains. the frequency, duty cycle, polarity and overlap/ non-overlap are programmable. the output frequency can be free-running or locked to the output vsync signal. table 43: pwm registers (sheet 1 of 2) register name addr mode bits default description pwm_ctrl0 01a0 r [7] 00 pwm status 0*: unlocked 1: locked r/w [6] 0*: lock to cycles_per_frame from the free-running state machine 1: lock to cycles_per_frame register setting r/w [5] pwm_a polarity 0*: active low 1: active high r/w [4] pwm_b polarity 0*: active low 1: active high r/w [3] 0*: normal operation 1: force both pwm outputs to polarity settings of bits 5 and 4 r/w [2] 0*: change period or duty cycle at the end of the current cycle 1: smooth change, period or duty cycle increment/decrement every pwm_step_delay cycle r/w [1] 0*: free-running 1: lock to out_vsync r/w [0] 0*: disable pwm output 1: enable pwm output pwm_ctrl1 01a1 r/w [7:4] 00 lock 2 nd order gain (power of 2) 0*: max 3: typical f: min. r/w [3:0] lock gain (power of 2) 0*: max 6: typical f: min. pwm_period_l pwm_period_u 01a2 01a3 r/w r/w [7:0] [7:0] 00 00 period-2 in free-running mode, in xclks pwm_duty_l pwm_duty_u 01a4 01a5 r/w r/w [7:0] [7:0] 00 00 duty cycle of pwm in xclks pwm_overlap_l pwm_overlap_u 01a6 01a7 r/w r/w [7:0] [7:0] 00 00 non-overlap of pwms in xclks
register description by block ade3800 120/138 4.21 i2c block transfer (i2cbkt) the block transfer function allows the internal i2c parallel bus to be driven by an xclk state machine to perform fast block transfers between internal addresses without any mcu software overhead. transfer speed is approximately 2mbyte per second under typical conditions. 4.21.1 transfer setup and start writing the bit i2cbkt_ctrl[0] to 1 initiates the transfer, according to all source and destination parameters (addresses, length): length for source is programmable to allow repeated patterns/fills, such as filling an entire area with the same byte(s) an increment register for the destination allows to fill it only every n th byte depending on the increment value, the destination length must be programmed as follows: if i2cbkt_ctrl[3:2]=0 (or =1 with i2cbkt_inc=1): deslen = nb of bytes to transfer if i2cbkt_ctrl[3:2]=1 with i2cbkt_inc>1: deslen = (nb of bytes to transfer * inc) - 1 the transfer can either take place immediately, or be initiated by a number of selectable events coming from smux or tcon, as programmed in i2cbkt_ctrl[6:4]. transfers can occur between ram or registers or both, but cannot take place in the own registers of the i2cbkt block (refer to section 4.21.3: concurrent i2c transfers below). source and destination addresses cannot overlap. data can be either transferred from source to destination (one way) or swapped between them, depending on i2cbkt_ctrl[1]. 4.21.2 transfer progress the status bit i2cbkt_status[0] is set to 1 by hardware as soon as the transfer actually starts, and falls back to 0 when the transfer is completed. note: it is the software?s duty to write i2cbkt_ctrl[0] to 0 upon transfer completion, before preparing any new subsequent i2cbkt transfer. 4.21.3 concurrent i 2 c transfers while the i2cbkt block is operating, only i 2 c accesses from mcu to the i2cbkt registers listed below are allowed: any i 2 c access to other adresses will take priority and stop the i2cbkt transfer in progress in an unknown state (there is no way to tell which bytes have been transferred up to that point). pwm_step_delay 01a8 r/w [7:0] 00 in smooth change mode, the number of cycles skipped before the period/duty registers are incremented/decremented pwm_cycles_per_frame_l pwm_cycles_per_frame_u 01a9 01aa r/w r/w [7:0] [7:0] 00 00 the number of cycles per frame in frame lock mode when not using the internally generated cycles per frame from a previous free-running mode table 43: pwm registers (sheet 2 of 2) register name addr mode bits default description
121/138 ade3800 register description by block it is therefore strongly recommended to wait until the i2cbkt transfer in progress is completed, before initiating any i 2 c access other than polling the i2cbkt_status register. note: in case of need, a clean way to stop the current i2cbkt transfer is to write i2cbkt_ctrl[0] to 0. example fill every other byte of the entire osd_ram with a byte previously stored at address 4700: i2cbkt_src_l = 00, i2cbkt_src_u = 47: start address where the data is located i2cbkt_srclen_l = 01, i2cbkt_srclen_u = 00: only 1 byte to transfer from source table 44: i2c block transfer registers register name addr bits mode rst description i2cbkt_inc 0021 [7:0] r/w 00 destination address increment, 1 to 255 allowed i2cbkt_srclen_l 0022 [7:0] r/w 00 length of source block, in bytes. if source length < destination length, the source data is repeated i2cbkt_srclen_u 0023 [7:0] r/w 00 i2cbkt_deslen_l 0024 [7:0] r/w 00 length of block transfer, in bytes. include effect of increment if i2cbkt_ctrl[3:2] = 1 i2cbkt_deslen_u 0025 [7:0] r/w 00 i2cbkt_src_l 0026 [7:0] r/w 00 source starting address i2cbkt_src_u 0027 [7:0] r/w 00 i2cbkt_des_l 0028 [7:0] r/w 00 destination starting address i2cbkt_des_u 0029 [7:0] r/w 00 i2cbkt_ctrl 002a [6:4] r/w 00 transfer start condition select (level sensitive) 0*: immediate 1: when in_henab = 0 2: when out_henab = 0 3: when in_venab = 0 4: when out_venab = 0 5: tcon_i2c_transfer = 1 (r efer to tcon_ctrl[3:2]) [3:2] r/w increment mode 0*: source + 1, dest + 1 1: source + 1, dest + in c (as set in i2cbkt_inc) 2: reserved 3: reserved [1] r/w 0*: one way transfer from source to destination 1: swap source and destination [0] r/w 0*: end of transfer, or stop transfer in progress 1: start transfer according to condition bits [6:4] must be set and cleared by software i2cbkt_pulse 002b [7:4] r/w 31 read pulse width (reserved) [3:0] r/w write pulse width (reserved) i2cbkt_status 002c [0] r 00 transfer status 0*: block transfer completed 1: block transfer in progress
register description by block ade3800 122/138 i2cbkt_des_l = 00, i2cbkt_des_u = 17: destination start address (osd_ram) where the data will be written i2cbkt_inc = 02: skip every other byte i2cbkt_deslen_l = ff, i2cbkt_deslen_u = 5f: (46ff-1700+1) = 12288 bytes to transfer means destination length = (12288 x increment) - 1 = 5fff i2cbkt_ctrl = 05: immediate transfer with source+1 and destination+2 4.22 i2c registers and ram addresses the i 2 c own address of the device (also called ?ade_id?) is a8h . 4.22.1 i 2 c transfer format all i 2 c addresses, registers and ram, are 16-bit wide. address lsb must be transferred first , followed by msb then the data, as in the following i 2 c write access example: 4.22.2 dedicated ram areas per block 4.22.3 multi-byte registers data are read back in the order of how they were written. all values spread out over several registers are organised as follows: start ade_id (a8) ack a a. all ack bits are returned by the device. register address lsb ack register address msb ack data 1 ack ...further data... stop table 45: i2c ram addresses name description block clock condition a a. the relevant clock condition must be met to grant access to th at block?s registers and ram. start addr end addr size size in bytes gam_r gamma red lut gamma dotclk >= sclk 1000 10ff 256x8b 256 gam_g gamma green lut 1100 11ff 256x8b 256 gam_b gamma blue lut 1200 12ff 256x8b 256 osd_ram characters ram area osd 1700 46ff 4096x24b 12288 osd_clut color lut 4700 47ff 64x32b 256 scl_ram_1 line buffers scl sclk >= xclk 9000 a700 1024x42b n/a scl_ram_2 a800 bfff 1024x42b n/a omux in rsds mode only b b. in rsds mode: omux uses this ram area for internal computation purposes, it should not be otherwise modified by any means. in lvds mode, this ram is free of use, and can be used as a temporary storage or working area for example. omux dotclk >= sclk e300 f1ff 640x48b 3840
123/138 ade3800 register description by block they are all lsb aligned, except for omux which is msb aligned. when the ram width is not a multiple of 8, zeros will be returned for the non-meaningful bits. example of lsb aligned ram if addresses 9000-9005 are written with the values f0-f5, the contents of scl_ram_1 (at word address 0) are as follows: a read from address 9000 will return f0; a read from address 9001 will return f1, etc. note: a read from 9005 returns the value 01 (as opposed to f5) since there are only 2 meaningful bits of data at this address. example of msb aligned ram (omux only) if addresses e300-e305 are written with the values f0-f5 respectively, the contents of the omux ram (at word address 0) are as follows: a read from address e300 will return f0, a read from address e301 will return f1, and so on. 32-bit values 24-bit values 16-bit values _0 lsb _l or _0 lsb _l lsb _1 _m or _1 msb _u usb _2 _u or _2 usb _3 usb [41:40] [39:32] [31:24] [23:16] [15:8] [7:0] 01 f4 f3 f2 f1 f0 [47:40] [39:32] [31:24] [23:16] [15:8] [7:0] f0 f1 f2 f3 f4 f5
electrical specifications ade3800 124/138 5 electrical specifications 5.1 absolute maximum ratings 5.2 nominal operating conditions symbol parameter min. typ. max. unit avdd dvdd18 xvdd18 ovdd18 pvdd18 pllvdd18 1.8v supply voltages 1.95 v dvdd33 3.3v supply voltages 3.6 v v esd electrostatic protection (human body model) 2kv v in5vtol max voltage on 5 volt tolerant input pins 6.1 v v in3vtol max voltage on 3.3 volt tolerant input pins 4.1 v t stg storage temperature -40 +150 oc t oper operating temperature 0+70oc t j operating junction temperature -40 +125 oc symbol parameter min. typ. max. unit avdd dvdd18 xvdd18 ovdd18 pvdd18 pllvdd18 1.8v supply voltages 1.71 1.8 1.89 v dvdd33 3.3v supply voltages 3.135 3.3 3.465 v f xtal crystal frequency 27 mhz p xga75lvds power consumption using xga75hz input and driving a xga lvds panel (1 pixel per clock) 0.75 w p xga75rsds power consumption using xga75hz input and driving a xga rsds panel (1 pixel per clock) 0.70 w p sxga75lvds power consumption using sxga75hz input and driving a sxga lvds panel (2 pixels per clock) 1.10 w p sxga75rsds power consumption using sxga75hz input and driving a sxga rsds panel (2 pixels per clock) 1.00 w p pwrdn power consumption in power down mode 0.04 0.05 w i avddx75lvds avdd supply current, (xga75hz input and xga lvds panel) 220 ma i dvdd18x75lvds dvdd18 supply current, (xga75hz input and xga lvds panel) 150 ma i xvdd18x75lvds xvdd18 supply current, (xga75hz input and xga lvds panel) 2.5 ma i ovdd18x75lvds ovdd18 supply current, (xga75hz input and xga lvds panel) 35 ma
125/138 ade3800 electrical specifications i pvdd18x75lvds pvdd18 supply current, (xga75hz input and xga lvds panel) 5ma i pllvdd18x75lvds pllvdd18 supply current, (xga75hz input and xga lvds panel) 2.5 ma i dvdd33x75lvds dvdd33 supply current, (xga75hz input and xga lvds panel) 2ma i avddx75rsds avdd supply current, (xga75hz input and xga rsds panel) 220 ma i dvdd18x75rsds dvdd18 supply current, (xga75hz input and xga rsds panel) 150 ma i xvdd18x75rsds xvdd18 supply current, (xga75hz input and xga rsds panel) 2.5 ma i ovdd18x75rsds ovdd18 supply current, (xga75hz input and xga rsds panel) 10 ma i pvdd18x75rsds pvdd18 supply current, (xga75hz input and xga rsds panel) 5ma i pllvdd18x75rs ds pllvdd18 supply current, (xga75hz input and xga rsds panel) 2.5 ma i dvdd33x75rsds dvdd33 supply current, (xga75hz input and xga rsds panel) 2ma i avddsx75lvds avdd supply current, (sxga75hz input and sxga lvds panel) 225 ma i dvdd18sx75lvds dvdd18 supply current, (sxga75hz input and sxga lvds panel) 260 ma i xvdd18sx75lvds xvdd18 supply current, (sxga75hz input and sxga lvds panel) 2.5 ma i ovdd18sx75lvds ovdd18 supply current, (sxga75hz input and sxga lvds panel) 70 ma i pvdd18sx75lvds pvdd18 supply current, (sxga75hz input and sxga lvds panel) 5ma i pllvdd18sx75lv ds pllvdd18 supply current, (sxga75hz input and sxga lvds panel) 2.5 ma i dvdd33sx75lvds dvdd33 supply current, (sxga75hz input and sxga lvds panel) 3.5 ma i avddsx75rsds avdd supply current, (sxga75hz input and sxga rsds panel) 225 ma i dvdd18sx75rsds dvdd18 supply current, (sxga75hz input and sxga rsds panel) 250 ma i xvdd18sx75rsds xvdd18 supply current, (sxga75hz input and sxga rsds panel) 2.5 ma i ovdd18sx75rsds ovdd18 supply current, (sxga75hz input and sxga rsds panel) 20 ma i pvdd18sx75rsds pvdd18 supply current, (sxga75hz input and sxga rsds panel) 5ma i pllvdd18sx75r sds pllvdd18 supply current, (sxga75hz input and sxga rsds panel) 2.5 ma i dvdd33sx75rsds dvdd33 supply current, (sxga75hz input and sxga rsds panel) 3.5 ma symbol parameter min. typ. max. unit
electrical specifications ade3800 126/138 5.3 preliminary thermal data 5.4 preliminary dc specifications test conditions: dvdd33 = 3.3v, dvdd18 = avdd = ovdd18 = pvdd18 = xvdd18 = pllvdd18 = 1.8v and t amb = 25oc 5.4.1 lvttl 5-volt tolerant inputs with hysteresis hsync, vsync, scl, resetn, ext_sog, resetn2, xclken 5.4.2 lvttl 3-volt tolerant inputs with hysteresis tst_scan 5.4.3 lvttl 5-volt tolerant i/o with hysteresis sda, sda2 symbol parameter min. typ. max. unit r thja junction-to-ambient thermal resistance (lqfp100): soldered exposed pad unsoldered exposed pad 20 29 oc/w r thja junction-to-ambient thermal resistance (lqfp128): soldered exposed pad unsoldered exposed pad 25.1 32.6 oc/w symbol parameter condition min. typ. max. unit v ih high level input voltage 2.0 v v il low level input voltage 0.8 v v hyst schmitt trigger hysteresis 0.4 v symbol parameter condition min. typ. max. unit v ih high level input voltage 2.0 v v il low level input voltage 0.8 v v hyst schmitt trigger hysteresis 0.4 v symbol parameter condition min. typ. max. unit v ih high level input voltage 2.0 v v il low level input voltage 0.8 v v hyst schmitt trigger hysteresis 0.4 v v oh high level output voltage 3.15 v v ol low level output voltage 0.15 v i out output current 8ma
127/138 ade3800 electrical specifications 5.4.4 lvttl 3-volt tolerant i/o xclk 5.4.5 lvttl 3-volt tolerant i/o tcon [7:0] 5.5 lvds outputs out [7:0], out [7:0]b, outc lk [1:0], ou tclk [1:0]b 5.6 rsds outputs rsds [7:0], rsds [7:0]b, out [7:0], out [7:0]b, outclk [1:0], outclk [1:0]b, rsds [15:8], rsds [15:8]b symbol parameter condition min. typ. max. unit v ih high level input voltage 2.0 v v il low level input voltage 0.8 v v oh high level output voltage 3.15 v v ol low level output voltage 0.15 v i out output current 8ma symbol parameter condition min. typ. max. unit v ih high level input voltage 2.0 v v il low level input voltage 0.8 v v oh high level output voltage 3.15 v v ol low level output voltage 0.15 v i out output current 2ma symbol parameter condition min. typ. max. unit v lv d s - d i f f lvds differential output voltages r l =100 ohm 250 345 450 mv v lv d s - c m lvds common mode output voltage r l =100 ohm 1.125 1.25 1.375 v ? lv d s - d i f f change in v lvds-diff between complimentary output states r l =100 ohm 35 mv ? lv d s - c m change in v lvds-cm between complimentary output states r l =100 ohm 35 mv symbol parameter condition min. typ. max. unit v rsds-diff rsds differential output voltage rsds mode 100 200 400 mv
electrical specifications ade3800 128/138 5.7 adc characteristics v rsds-cm rsds common mode output voltage 680 ohm + 50 ohm external termination to 1.3v 1.1 1.3 1.5 v trise, tfall rsds transition time to 90% c l = 30pf 3ns symbol parameter condition min. typ. max. unit inl adc integral nonlinearity (7-bit) without dithering 0.6 1.0 1.5 lsb dnl adc differential nonlinearity (7- bit) without dithering no missing codes 0.3 0.6 1.0 lsb nob effective number of bits v inadc = 1mhz sinusoidal, 0.5v pp - 1v pp , f sampling = 20 mhz 6.2 6.6 6.8 bit thd total harmonic distortion v inadc = 1mhz sinusoidal, 0.5v pp - 1v pp f sampling = 20 mhz -48 -44 -41 db v inadc adc input voltage range 0.5 1 vp-p r inadc adc input resistance 200 kohms c inadc adc input capacitance 12 pf f adc adc sample frequency 20 140 mhz adc gain step adc gain step size 0.05 db adc offset step adc o ffset step size 2.9 mv symbol parameter condition min. typ. max. unit
129/138 ade3800 package mechanical data 6 package mechanical data 6.1 100 pin lqfp note: the pin 1 corner is at an angle, while the others are 90. dimensions (mm) dimensions (inches) min. typ. max. min. typ. max. a 1.60 0.063 a1 0.05 0.15 0.002 0.006 a2 1.35 1.40 1.45 0.053 0.055 0.057 b 0.17 0.22 0.27 0.007 0.009 0.011 c 0.09 0.20 0.004 0.008 d 15.80 16.00 16.20 0.622 0.63 0.638 d1 13.80 14.00 14.20 0.543 0.551 0.559 d2 2.00 3.9 0.079 0.154 d3 12.00 0.472 e 15.80 16.00 16.20 0.622 0.63 0.638 e1 13.80 14.00 14.20 0.543 0.551 0.559 e2 2.00 3.9 0.079 0.154 e3 12.00 0.472 e 0.50 0.02 l 0.45 0.60 0.75 0.018 0.024 0.03
package mechanical data ade3800 130/138 6.2 128 pin lqfp note: the pin 1 corner is at an angle, while the others are 90. l1 1.00 0.039 k 0 3.5 7 0 0.138 0.276 ccc 0.08 0.003 dimensions (mm) dimensions (inches) min. typ. max. min. typ. max. a 1.600 0.063 a1 0.150 0.006 a2 1.400 1.350 1.450 0.055 0.053 0.057 b 0.220 0.170 0.270 0.009 0.007 0.011 d 22.000 0.866 d1 20.000 0.787 d2 3.9 0.154 dimensions (mm) dimensions (inches) min. typ. max. min. typ. max. d2 e2 d d1 b e pin 1 identification 11/13 e1 e a2 a1 gauge plane 0.25 mm. k 0 min. 0.08/0.20 r. 0.08 r. min. l l1 a
131/138 ade3800 package mechanical data e 16.000 0.623 e1 14.000 0.551 e2 3.9 0.154 e 0.500 0.020 l 0.600 0.450 0.750 0.024 0.0178 0.030 l1 1.000 0.040 k 0.000 7.000 0.000 0.275 dimensions (mm) dimensions (inches) min. typ. max. min. typ. max.
scaler equations ade3800 132/138 7 scaler equations f sclk = 140 mhz , and sclk_pr = 18af scl_trigger_dly = inittrigdelay ;// wait 3 frames wptrminpost = scl_ptr_post; // feedback loop to tune trigger delay: while ( !(8 < wptrminpost < 16) ) {// landing zone is (8, 16) & mid point is 12 wdiff = wptrminpost > (512 + 12) ? wptrminpost ? (1024 + 12): wptrminpost - 12; dwtriggerdelay = dwtriggerdelay + (((( xclk_freq / inclk_freq ) * 3) * wdiff ) / 2); scl_trigger_dly = max ( dwtriggerdelay , 1); // wait 2 frames for new tr igger delay to take effect wptrminpost = scl_ptr_post; } ) 3 ( _ _ _ numppc otclk pr fsyn pr dclk ? ? = 2 _ _ hpixel dest hp hpos dest out ? = 2 _ _ vpixel dest vp vpos dest out ? = 10 = wintop ? ? ? ? + ? = otherwise vp wintop panels de winbot out _ , 1 , 2 _ ) 8 min , 48 max( ? ? = out out hb ht winleft out hp winleft winright + = hpixel dest hp rh scalefacto in _ 16 << = vpixel dest vp rv scalefacto in _ 16 << = 2 _ _ _ >> ? = pr dclk rh scalefacto pr sclk rate pipe 13 ) 24 ) 23 2 ) _ ((( _ >> + ? ? ? + ? = rh scalefacto hpos dest winleft hpos origin 13 ) ) 1 2 ) _ ((( _ >> ? ? ? + ? = rv scalefacto vpos dest wintop vpos origin 4 136 21 1 _ _ ) 9 43 ( 4 ) _ ( >> ? ? ? ? ? ? ? ? ? << ? ? << ? << + = rh scalefacto pr dclk pr sclk hpos dest winleft linestart 15 )) 6 _ ( ) _ (( 2 _ _ _ _ _ ) 2 _ ) 9 : 5 ? ) 1024 ((( >> >> ? ? + ? << ? << + > = pr dclk ht vpos dest wintop lines num h smeas hsync per xclks vtrig smux hp lay inittrigde out in
133/138 ade3800 ade3800 vs ade3700 8 ade3800 vs ade3700 the following gives an overview of the main differences between ade3700 and ade3800: package 100 pin lqfp for lvds 1&2 channels and rsds 1 channel application 128 pin lqfp for rsds 2 pixel per clock support 5v tolerant inputs do not have internal pull-up resistors i2c interface add block transfer for fast internal data move/swap/copy registers now all registers runs on xclk rgb register address ordering is reversed to bgr analog front end (adc & sog) new adc design with higher performances add internal sog sync stripper with bypass option (external sog ttl pin) sog activity can operate while adc power is down (wakeup from dpms by sog support) per channel skew control analog filter bandwidth programmable gain and offset independent and linear 10-bit adc using analog dithering technique (adth) line lock pll (llk) synthesized internal hsync has 50% duty cycle phase step is 4 times more precise phase range can exceed one clock period delay lock filter removed fewer registers, simplifies some programming clock and phase are both shadowed fm modulation amplitude step is 16 times more precise sync measurement (smeas) remove out of range register add fast mute function group all the fast mu te flags in smeas with sticky bit and enable
ade3800 vs ade3700 ade3800 134/138 sync mux (smux) set/reset replaced by pos/size references add vtrigger to make framelock reference in the center of the frame, allowing easier artifact free implementation on wide picture position changes data measurement (dmeas) scratch pad register removed dmeas uses only the 7 msb color data inform ation for processing scaler zoom (scale) simpler kernel programming, fewer registers new context sensitive scaler function h & v sharpness control includes former oseq functionality tcon generates the panel output and reference internal signals pattern generator (pgen) only one pattern engine (p0); p1 is input video tcon windowing control added color transformations (srgb) 2x and 4x delta magnification options added rgb programmable max clipping function added gamma correction (gam) 10 bit input and 10 bit output with bypass option relative 8 bit 2s-complement value delta tables (3x256) 2x delta magnification option, with limiting rgb offset within an input range option available on screen display (osd) new concept support 1,2,3,4 bpp characters 64 true color palette with 4 bit alpha blending per color common ram shared between text and font text can be displayed anywhere on the screen osd position is in pixel and line unit per character h and v flip
135/138 ade3800 ade3800 vs ade3700 up to 1024 character support flicker detector (flicker) only 4 of the 8 scores are measured in one shot output dithering (apc) new design mode flexibility and performance improved lsb justified (for 6 bit output, msbs are zero) output mux (omux) per pin delay removed gate speed monitoring register removed bit rotate function added timing controller (tcon) simplified, easier programming common functions hardcoded easy to use lc polarity inversion signal generator 16 srtd gates vs 32 in ade 3700 scaler output data enable signal must come from tcon (no oseq block anymore) no ocf control anymore resync on h or v sync edges no longer needed comparator, pulse and window generators lvds/rsds (new block added) skew control 40-85 mhz clock range flexible output mapping pair swap, bit sequence reversing option
glossary ade3800 136/138 9 glossary afe analog front end, this includes the adc and sog circuitries bare panel see smart panel bpp bit per pixels (osd font: 4bpp = 16 color characters) dft design for test block to output certain internal signals (otherwise not available) in_enab in_henab & in_venab = input active area signal* in_henab input horizontal active pixel signal* in_venab input vertical active line signal* lv d s low voltage differential signaling video interface to lcd panel out_enab out_henab & out_venab = output panel active area signal* out_henab output panel horizontal active pixel signal* out_venab output panel vertical active line signal* ppc pixels per clock (2 ppc = dual wide panel bus interface) pvt parameters that depend on process (chip), voltage (power) and temperature (board) rsds reduced swing differential signaling video interface to lcd panel sip panel see smart panel smart panel panel without built-in tcon using ttl or rsds input video interface, additional timing signals must be provided for proper operation. sog sync on green type signal srgb standard rgb, color matching between display and real life srtd set-reset-toggle-delay programmable gate in tcon standard panel panel with built-in tcon using lvds or ttl input video interface tcon timing controller function tmds transition minimized differential signaling video interface from dvi digital video input * all enab type signals are active high
137/138 ade3800 revision history 10 revision history table 46: summary of modifications date version description 14 february 2003 0.1 first draft. 03 june 2003 0.2 second draft. 05 september 2003 0.3 major updates to chapter 3: pin descriptions , chapter 4: register description by block and chapter 6: package mechanical data . 24 october 2003 0.4 major updates to all chapters. november 2003 1.0 first issue. january 2004 1.1 document changed from ta rget specification to datasheet. april 2004 1.3 corrections to figure 2: lqfp100 pinout diagram on page 11 and figure 3: lqfp128 pinout diagram on page 12 and to pin numbers in table on chapter 4.17.1: output data . may 2004 2.0 major updates to chapter 3: pin descriptions . new pin assignments impact on figure 2: lqfp100 pinout diagram on page 11 , figure 3: lqfp128 pinout diagram on page 12 , table 3: analog input signals on page 12 and table 7: analog section power supply pins on page 16 . june 2004 2.1 corrected tcon_inv_1 descriptions in table 39: register map . major updates to chapter 5: electrical specifications . 09 november 2004 3.0 chapter 3: pin descriptions - replaced pin 1 (qfp100) and pin 128 (qfp 128) name with pllvdd18 . chapter 4: register description by block - few changes applied in register description for glbl, omux, smux and tcon. chapter 5: electrical specifications - many values modified following the device full characterization. february 2005 3.1 updated information in table 7: analog section power supply pins on page 16 , chapter 4.12.1: parametric gamma, digital contrast / brightness on multiple windows and chapter 4.12.2: color space warp . 11 apr 2005 3.2 updated chip revision id and added glbl_azwc_ctrl register values in table 9: global control registers on page 18 .
ade3800 138/138 information furnished is believed to be accurate and reliable. however, stmicroelectronics assumes no responsibility for the co nsequences of use of such information nor for any infringement of patents or other rights of third parties which may result from its use. no license is granted by implication or otherwise under any patent or patent rights of stmicroelectronics. specifications mentioned in this publication are subject to change without notice. this publication supersedes and replaces all information previously supplied. stmicroelectronics products are not authorized fo r use as critical components in life support devices or systems without the express written approval of stmicroelectronics. the st logo is a registered trademark of stmicroelectronics. all other names are the property of their respective owners ? 2005 stmicroelectronics. all rights reserved. stmicroelectronics group of companies australia - belgium - brazil - canada - china - czech republic - finland - france - germany - hong kong - india - israel - ital y - japan - malaysia - malta - morocco - singapore - spain - sweden - switzerland - united kingdom - united states of america www.st.com


▲Up To Search▲   

 
Price & Availability of ADE3800XT

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X